This project has moved and is read-only. For the latest updates, please go here.

possible .eps to .png bug

Feb 26, 2015 at 2: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):

Image #2(blurry):

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);

The first image looks fine, the second image comes out blurry.

Feb 26, 2015 at 12:57 PM
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 9: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.