Howto convert color profile of image in C/C++ API?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
whatdoido
Posts: 27
Joined: 2011-01-22T16:54:46-07:00
Authentication code: 8675308

Howto convert color profile of image in C/C++ API?

Post by whatdoido »

[ editted subject to be more targeted ]

hi
I am wishing to use the Magick C/C++ API to perform ICC color conversions on jpg images, in the same way that convert does:

Code: Select all

    convert -profile ./aRGB.icc ./in-aRGB.jpg \
            -profile ./sRGB.icc ./out-sRGB.jpg
I have dug around the API/header files and the convert.c util file but am getting a little lost for which library calls are required. If someone could point me in the right direction, that'd be appreciated.


A little background: I wish to do this programmatically as I will be processing a potentially large batch of images whereby I will already have the (jpeg) image data in memory (from previous processing) along with it's associated ICC profile (also in memory).

thanks
Post Reply