Hello, guys. When converting from EPS in jpg edges become blurred. What settings need to change to make the edges as in the EPS (original)
should be something like the picture on the left
original file EPS http://rghost.ru/75mjRSnzB
eps to jpg degradations
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: eps to jpg degradations
JPG is a lossy compression and does a lousy job in flat color regions. You would be better off with these type images going to PNG8 or GIF most likely.
You also do not say what version of Imagemagick and platform you are using and what versions of Ghostscript and libjpeg. You might want to upgrade any or all of them.
You also do not say what version of Imagemagick and platform you are using and what versions of Ghostscript and libjpeg. You might want to upgrade any or all of them.
Re: eps to jpg degradations
Version: ImageMagick 6.9.0-10 Q8 x64fmw42 wrote:JPG is a lossy compression and does a lousy job in flat color regions. You would be better off with these type images going to PNG8 or GIF most likely.
You also do not say what version of Imagemagick and platform you are using and what versions of Ghostscript and libjpeg. You might want to upgrade any or all of them.
Version: gs916w64
C:\Users\Sonyk>convert -resize "5000x5000" -colorspace RGB -quality 100 86d1e.eps 2.jpg
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: eps to jpg degradations
Correct syntax is to put the input image after convert, though it may not make a difference in IM 6.convert -resize "5000x5000" -colorspace RGB -quality 100 86d1e.eps 2.jpg
Also why are you converting to -colorspace RGB rather than -colorspace sRGB?
You do not say what version of libjpeg you are using?
See the listing from
convert -list format
Mine shows:
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (90)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format (90)
If you EPS is CMYK then the command should be
Code: Select all
convert -colorspace sRGB 86d1e.eps -resize "5000x5000" -quality 100 2.jpg
Code: Select all
convert 86d1e.eps -resize "5000x5000" -quality 100 2.jpg
But I still think you should not use JPG for such images.
Also see http://www.imagemagick.org/Usage/basics/#why
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: eps to jpg degradations
As Fred says, don't use JPG.
Also, don't rasterize it then resize it. Instead, use "-density" to rasterize directly at the required size.
Also, don't rasterize it then resize it. Instead, use "-density" to rasterize directly at the required size.
Code: Select all
convert -density 360 86d1e.eps x.png
snibgo's IM pages: im.snibgo.com
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: eps to jpg degradations
I forgot to add that you might get better color fidelity using profiles rather than -colorspace
Re: eps to jpg degradations
Thanks for the help guys.
snibgo, How do you calculate the value of 360?
snibgo, How do you calculate the value of 360?
Re: eps to jpg degradations
magick value 72...
72*5 = 360
72*5 = 360
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: eps to jpg degradations
Yes, that's it. The default density is 72. This creates a width of 1000. But you want a width of 5000. 72*5000/1000 = 360.
snibgo's IM pages: im.snibgo.com