EPS thumbnails are blurry

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
jaideep13
Posts: 3
Joined: 2019-10-11T13:47:50-07:00
Authentication code: 1152
Location: Ottawa,Canada

EPS thumbnails are blurry

Post by jaideep13 » 2019-10-11T13:50:29-07:00

Use the following command to generate EPPS thumbnail and notice the thumbnails are blurry

convert -define jpeg:size=319x319 <path to EPS file> -thumbnail 319x319 cq5dam.thumbnail.319.319.png

User avatar
fmw42
Posts: 25742
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EPS thumbnails are blurry

Post by fmw42 » 2019-10-11T14:16:00-07:00

There is no -define jpeg:size. There is a -define jpeg:extent={size} where size is in kb. See https://imagemagick.org/Usage/formats/#jpg_write. Also add -density XX before reading the pdf to get better quality.

Code: Select all

convert -density 300 <path to EPS file> -thumbnail 319x319 -define jpeg:extent={size} cq5dam.thumbnail.319.319.jpg
Fill in your desired outfile file size in kb

NOTE: The -define only works for JPG output. It does not help with PNG output.

jaideep13
Posts: 3
Joined: 2019-10-11T13:47:50-07:00
Authentication code: 1152
Location: Ottawa,Canada

Re: EPS thumbnails are blurry

Post by jaideep13 » 2019-12-04T14:29:10-07:00

Thanks a lot for your reply, we have added the "-density 300" which helped with getting better quality renditions. The issue we are facing now is the White EPS files will not display at all.

See image at [1] for more details.

Any suggestions on how to resolve it?

[1] https://www.dropbox.com/s/056u36p0oyomm ... e.png?dl=0

User avatar
fmw42
Posts: 25742
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EPS thumbnails are blurry

Post by fmw42 » 2019-12-04T15:00:49-07:00

Please post the actual white EPS file so we can examine it. It does us no good to see a PNG image of your processes without the actual EPS.

Also always provide your IM version and platform and in this case what version of Ghostscript you are using with Imagemagick.

Also provide your exact IM command line so we can try to reproduce your issue.

When you say it won't display, in what viewer will it not display? What happens? Error message? Black screen? Or what? Please clarify in more detail.

jaideep13
Posts: 3
Joined: 2019-10-11T13:47:50-07:00
Authentication code: 1152
Location: Ottawa,Canada

Re: EPS thumbnails are blurry

Post by jaideep13 » 2019-12-05T09:55:01-07:00

EPS File can be found at -> https://www.dropbox.com/s/4ckv83cj000yi ... 3.eps?dl=0

ghostscript 9.21 and imagemagick 7.0.8-68

Command that we are using to generate thumbnail/renditions

convert -density 500 -define jpeg:size=319x319 <path to EPS file> -thumbnail 319x319 cq5dam.thumbnail.319.319.png

We used the command above to generate "eqh_icon_white_4c_woman-3.thumbnail.319.319.png " and it was all white(https://www.dropbox.com/s/x9ubq7t79kwpd ... 9.png?dl=0)

The same command works fine for non-white images.

To give you more details about the command, It is used by the Adobe Experience Manager to generate thumbnails using IM. More details at [1]. Once renditions are generated, AEM uses them to display it under the assets console.

[1] https://helpx.adobe.com/experience-mana ... agick.html

snibgo
Posts: 12400
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: EPS thumbnails are blurry

Post by snibgo » 2019-12-05T10:27:55-07:00

Your EPS file is CMYK, with transparency. I suggest you insert "-colorspace sRGB" before reading it.

You are not reading a jpg image, so "-define jpeg:size=319x319" is not relevant.
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 25742
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: EPS thumbnails are blurry

Post by fmw42 » 2019-12-05T11:06:32-07:00

Use magick not convert on IM 7. This command works fine for me. I see a white girl-like outline on a transparent background.

Code: Select all

magick -density 500 -colorspace sRGB eqh_icon_white_4c_woman-3.eps -thumbnail 319x319 thumb.png

Post Reply