EPS thumbnails are blurry
-
- Posts: 3
- Joined: 2019-10-11T13:47:50-07:00
- Authentication code: 1152
- Location: Ottawa,Canada
EPS thumbnails are blurry
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
convert -define jpeg:size=319x319 <path to EPS file> -thumbnail 319x319 cq5dam.thumbnail.319.319.png
- fmw42
- Posts: 25742
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: EPS thumbnails are blurry
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.
Fill in your desired outfile file size in kb
NOTE: The -define only works for JPG output. It does not help with PNG output.
Code: Select all
convert -density 300 <path to EPS file> -thumbnail 319x319 -define jpeg:extent={size} cq5dam.thumbnail.319.319.jpg
NOTE: The -define only works for JPG output. It does not help with PNG output.
-
- Posts: 3
- Joined: 2019-10-11T13:47:50-07:00
- Authentication code: 1152
- Location: Ottawa,Canada
Re: EPS thumbnails are blurry
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
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
- fmw42
- Posts: 25742
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: EPS thumbnails are blurry
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.
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.
-
- Posts: 3
- Joined: 2019-10-11T13:47:50-07:00
- Authentication code: 1152
- Location: Ottawa,Canada
Re: EPS thumbnails are blurry
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
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
-
- Posts: 12400
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: EPS thumbnails are blurry
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.
You are not reading a jpg image, so "-define jpeg:size=319x319" is not relevant.
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25742
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: EPS thumbnails are blurry
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