This project has moved. For the latest updates, please go here.

Resized images appear different in chrome to windows photo viewer

May 26, 2015 at 7:14 AM
Edited May 26, 2015 at 7:15 AM
Hi,

Not really sure what the error is here, I suspect it may be a chrome issue, although it may be that the images produced has an error that can be fixed.

Image screenshot shown side by side (Left image is Chrome)
Image

How the image should look
Image

The AI file the image was taken from
Printable Poster13.ai
var settings = new MagickReadSettings {Density = new PointD(150)};

                using (var image = new MagickImage(_mediaFolder + "/" + upload.FileName, settings)) {
                    image.Resize(1024, 1024);
                    image.Format = MagickFormat.Jpg;
                    filePath = ....
                    image.Write(filePath);
                }
Coordinator
May 26, 2015 at 10:49 AM
Your image is CMYK instead of sRGB and most browsers are not good at displaying CMYK images. You probably want to convert it to sRGB instead. The next version of Magick.NET will include a new method to do this easily, you can take a look at the changesets below to see how I implemented this:

https://magick.codeplex.com/SourceControl/changeset/8c19c37c227d128b2534bdbec086f6fa32e45ed6
https://magick.codeplex.com/SourceControl/changeset/9ae6d33c222dd8f77976017b575fd357f46da354