Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: CMYK jpeg to RGB jpeg, leaving image as CMYK.

$
0
0
I've tried the sample for converting from CMYK to RGB and the output still appears to have CMYK embedded.
            var settings = new MagickReadSettings();
            settings.ColorSpace = ColorSpace.RGB;

            using (MagickImage image = new MagickImage())
            {
                image.AddProfile(ColorProfile.SRGB);
                image.Read(sourceImagePath , settings);
                image.Write(destinationImagePath );
            }
I've also tried swapping the ColorSpace enumeration above with .CMYK to no avail.

After running the code above and using http://regex.info/exif.cgi to read the metadata, I can see the following warning;
WARNING: Embedded color profile: “(unrecognized embedded color profile 'U.S. Web Coated (SWOP) v2')”
Some popular web browsers ignore embedded color profiles, meaning users of those browsers see the wrong colors for this image.
Obviously, this is exactly what I am trying to get rid of as it renders poorly in IE and other image libs have trouble understanding it (as it is CMYK).

Am I doing something dumb? Tried a few different angles but can't see it.

Thanks in advance

Ryan

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>