Convert image to another color profile? #651
-
Hello, with Wand is it possible to convert an image to another color profile, specifying the ICC profiles to use? I am trying to reproduce the results of the command listed at this link (https://www.rigacci.org/wiki/doku.php/doc/appunti/software/imagemagick_color_management) under the section Convert an image to another color profile. That command is:
This command strips any existing color profiles, assigns the color profile to canon9000fmarkii.icc (no pixel values are changed), and then converts the color profile to sRGB (pixel values are changed). I attempted to produce the same results with Wand using some code like the following:
but the colors aren't converted. Have I done something wrong, or is color conversion with ICC profiles currently not possible with Wand? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looks like you are reading & writing with numpy arrays. As only pixel-data is transported via np's array interface, and not any image metadata. Wand's |
Beta Was this translation helpful? Give feedback.
Looks like you are reading & writing with numpy arrays. As only pixel-data is transported via np's array interface, and not any image metadata. Wand's
Image.strip()
&Image.profiles[]
will have no effect as those methods do not alter any pixel-data.