Page 1 of 1

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

Posted: 2011-02-02T09:10:13-07:00
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