'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? `



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 mkdev