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

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 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.