Page 1 of 1

eps to jpg degradations

Posted: 2015-04-02T12:54:51-07:00
by Sonyk
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)
Image
should be something like the picture on the left
Image

original file EPS http://rghost.ru/75mjRSnzB

Re: eps to jpg degradations

Posted: 2015-04-02T13:38:25-07:00
by fmw42
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.

Re: eps to jpg degradations

Posted: 2015-04-02T13:42:57-07:00
by Sonyk
fmw42 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: ImageMagick 6.9.0-10 Q8 x64
Version: gs916w64

C:\Users\Sonyk>convert -resize "5000x5000" -colorspace RGB -quality 100 86d1e.eps 2.jpg

Re: eps to jpg degradations

Posted: 2015-04-02T14:05:49-07:00
by fmw42
convert -resize "5000x5000" -colorspace RGB -quality 100 86d1e.eps 2.jpg
Correct syntax is to put the input image after convert, though it may not make a difference in IM 6.

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
if the EPS is sRGB already (RGB), then just do

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

Re: eps to jpg degradations

Posted: 2015-04-02T14:21:28-07:00
by snibgo
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.

Code: Select all

convert -density 360 86d1e.eps x.png

Re: eps to jpg degradations

Posted: 2015-04-02T14:27:39-07:00
by fmw42
I forgot to add that you might get better color fidelity using profiles rather than -colorspace

Re: eps to jpg degradations

Posted: 2015-04-03T02:54:57-07:00
by Sonyk
Thanks for the help guys.
snibgo, How do you calculate the value of 360?

Re: eps to jpg degradations

Posted: 2015-04-03T03:55:58-07:00
by Sonyk
magick value 72...
72*5 = 360

Re: eps to jpg degradations

Posted: 2015-04-03T11:58:41-07:00
by snibgo
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.