Page 1 of 1

length of profile? in MagickRemoveImageProfile()

Posted: 2007-07-26T09:09:46-07:00
by DJTurboToJo
how can I get the length for an profile.

This is needed for MagickRemoveImageProfile

Code: Select all

  unsigned char *MagickRemoveImageProfile(MagickWand *wand,
    const char *name,size_t *length)
When I want to remove all profiles I could also use:
1.

Code: Select all

  MagickBooleanType MagickStripImage(MagickWand *wand)
Then I wouldnt need a length!
2.

Code: Select all

  MagickBooleanType MagickProfileImage(MagickWand *wand,const char *name,
    const void *profile,const size_t length)
with name = '*' and profile = 'NULL'. Well then I need again the size.

Can someone tell me where I can find more detailed information than on the homepage of imagemagick about all these different methods?

Thanks,
TurboToJo

Re: length of profile? in MagickRemoveImageProfile()

Posted: 2007-07-26T10:14:21-07:00
by el_supremo
You don't need to know the length of the profile before calling MagickRemoveImageProfile. The length is that of the returned profile, which is why you must pass the address of the "length" variable.
If it does return a profile, you have to relinquish the memory once you're done with it.
Can someone tell me where I can find more detailed information than on the homepage of imagemagick about all these different methods?
That's about it unless you can read the source code.

Pete