Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apply and remove color profile with image magick

I have Tiff images with embedded specific ICC profiles.

I want to convert these by means of imagemagick to JPG-Files.

The JPG-Files should use colorspace sRGB (which is the default) and no embedded profile. In other words I want to apply the profile to the image and want to save it without profile.

When I use a simple convert command like this

convert source.tif target.jpg

the ICC-Profile is preserved in the JPG file. You can remove it with a command like this

convert source.tif +profile "*" target.jpg

But that does not seem to apply the profile.

A -colorspace RGB (or -colorspace sRGB?) should do the trick. But any combination I have tried so far does not work.

Is there a color management guru out there who can give me hint? `

like image 270
mkdev Avatar asked Apr 14 '15 17:04

mkdev


1 Answers

Some iterations later I come up with this

convert source.tif -profile MY_PROFILE_PATH/sRGB.icc +profile * target.jpg

I used the ICC profile from http://www.color.org/profiles/srgb_appearance.xalter

like image 152
mkdev Avatar answered Oct 15 '22 00:10

mkdev