Page 1 of 1

How to call MagickProfileImage

Posted: 2007-09-14T17:28:01-07:00
by bensyverson
Hi everyone,

I'm using MagickWand in C to do various tasks for a web CMS that I'm building. One of the things I want to do is convert uploaded photos from their native colorspaces to sRGB.

My question is: how exactly do I pass ICC data into MagickProfileImage? The documentation just mentions

Code: Select all

const void *profile
. Should I just read the binary data from the ICC profile into a buffer and pass MagickProfileImage a pointer to the buffer?

Thanks!

- ben

Re: How to call MagickProfileImage

Posted: 2007-09-23T19:45:23-07:00
by anthony
In 'C' a void pointer is a point to a undescribed block of memory. IM uses that
as a profile could be anything. With that should be some 'length' parameter defining the memory blocks length when the image gets written.