Page 1 of 2

Jaggy edges

Posted: 2018-06-18T15:27:02-07:00
by stockphotos
Hi, When we convert an EPS to Jpeg, some edges become jaggy/rough.

Please see sample in the link below.

https://postimg.cc/image/8w29uf8bl/

Imagemagick version: 6.8
The code we are using: PHP CLI
OS/platform: Linux
Command we use for this: convert -density 1200 -units pixelsperinch -colorspace sRGB 74296.eps -resize 25% tmp.jpg
Link to the original image: https://www.dropbox.com/s/fq4gjzvsnm1nu0v/395.eps?dl=0

Your help would be highly appreciated. Thanks!

Re: Jaggy edges

Posted: 2018-06-18T18:10:00-07:00
by fmw42
I do not see any jaggy edges in your output. Can you point them out better? When I run your command on IM 6.9.10.1 Q16 Mac OSX, it looks fine to me. Perhaps I am missing what you call "jaggy edges"?

What is your exact ImageMagick version, i.e. 6.8.x.x

You can get that from

convert -version

Re: Jaggy edges

Posted: 2018-06-18T23:01:53-07:00
by stockphotos
I mean rough edges, I tried putting arrows where it can be better seen.

https://postimg.cc/image/ftfa9g7f5/

I'll find out the imagemagick version.

Re: Jaggy edges

Posted: 2018-06-19T09:05:56-07:00
by fmw42
I still do not see that issue on the image you posted using ImageMagick 6.9.10.1. The latest image is not the same as the one you are showing nor the one in your command line. Your 6.8 version is very old. Perhaps you should upgrade.

Re: Jaggy edges

Posted: 2018-06-19T13:52:27-07:00
by stockphotos
Fred, You tried converting using your IM version 6.9.10.1. and the output was not like ours? the edges/lines are smooth?

Our current version is: Version: ImageMagick 6.7.7-10 2017-07-31 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC

Re: Jaggy edges

Posted: 2018-06-19T14:50:52-07:00
by fmw42
Here is my result.

Code: Select all

convert -density 1200 -units pixelsperinch -colorspace sRGB 395.eps -resize 25% 395.jpg

Image

Re: Jaggy edges

Posted: 2018-06-19T15:31:15-07:00
by snibgo
stockphotos wrote:Our current version is: Version: ImageMagick 6.7.7-10
That is very very old. I suggest you upgrade. Is your Ghostscript also old? If before about v9.19, I suggest you also upgrade that.

Re: Jaggy edges

Posted: 2018-06-22T16:36:45-07:00
by stockphotos
We are having a very hard time doing any upgrades with DreamHost.

Can anyone recommend a good hosting company that will allow us to upgrade Imagemagick?

Re: Jaggy edges

Posted: 2018-06-22T16:40:38-07:00
by stockphotos
BlueHost has ImageMagick 6.7.2-7 2017-03-22 Q16 installed on their servers. is this better?

Re: Jaggy edges

Posted: 2018-06-22T17:06:48-07:00
by fmw42
IM 6.7.2.7 is ancient, though on Linux, the date of the last patch is more important, since they keep patching old versions. The patch does not show the proper version of the patch and could be buggy. If possible you should try to find a host that will install a private version of ImageMagick on your server.

I believe I have heard of host supporting 6.7.8.9. But that is ancient also. I do not know of any Linux distribution including a proper modern version of ImageMagick.

See this link and the host company. https://help.dreamhost.com/hc/en-us/art ... ed-hosting

Also see https://www.whoishostingthis.com/compare/imagemagick/

A more thorough search of "versions of Imagemagick on hosted servers" on Google may uncover more relevant links.

Re: Jaggy edges

Posted: 2018-06-22T17:47:51-07:00
by fmw42
If you are not getting the same results as I did with the same version of ImageMagick, then check your version of Ghostscript and upgrade to the latest version. I was using 9.23

Re: Jaggy edges

Posted: 2018-06-23T19:31:22-07:00
by stockphotos
BlueHost just told me that with their VPS hosting they provide access to the root folder, so I'm thinking of asking my developer to have the newest version of IM installed.

Re: Jaggy edges

Posted: 2018-06-23T19:32:07-07:00
by stockphotos
Fred, Thanks so much! I'll keep you guys posted. I highly appreciate your assistance!

Re: Jaggy edges

Posted: 2018-06-23T20:41:15-07:00
by fmw42
Did you check your version of Ghostscript? That could just be the issue.

Re: Jaggy edges

Posted: 2018-06-23T23:34:30-07:00
by stockphotos
fmw42 wrote: 2018-06-23T20:41:15-07:00 Did you check your version of Ghostscript? That could just be the issue.
GPL Ghostscript 9.10 (2013-08-30) Copyright (C) 2013 Artifex Software