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

possible .eps to .png bug

Feb 26, 2015 at 1:36 AM
I have two .eps images. One converts to .png without any issues. The second is blurry. Please let me know if you can't download them to test with.

Image #1(good): https://www.dropbox.com/s/0dwhpjim8a9wd15/toon_block_logo_tm.eps?dl=0

Image #2(blurry): https://www.dropbox.com/s/4aa0pkptw1yfpsz/cartoon_network_logo_r.eps?dl=0

I have the following code:
        string sourceFilePath = <file>

        // Read as CMYK
        using (MagickImage cmyk = new MagickImage(sourceFilePath))
        {
            MagickReadSettings settings = new MagickReadSettings();
            settings.ColorSpace = ColorSpace.sRGB;

            // Read as RGBA
            using (MagickImage rgba = new MagickImage(sourceFilePath, settings))
            {
                // Copy alpha channel from RGBA to CMYK image
                cmyk.Composite(rgba, Gravity.Center, CompositeOperator.CopyAlpha);

                cmyk.Resize(3000, 0);

                cmyk.Write(@"C:\test.png");
            }
        }
The first image looks fine, the second image comes out blurry.

Thanks
Coordinator
Feb 26, 2015 at 11:57 AM
The first image looks 'fine' because you are resizing an image that is 1593x927 to 3000x1746. The second image looks terrible because you are resizing an image that is 297x80 to 3000x808. You should specify a density in the settings to make your original image larger.
Feb 26, 2015 at 8:39 PM
Great. Setting the density fixed my issue. You had actually told me that in a previous question I posted but forgot to set the density in my current code. Thanks.