Jaggy edges

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
stockphotos
Posts: 24
Joined: 2018-06-17T12:09:46-07:00
Authentication code: 1152

Jaggy edges

Post by stockphotos » 2018-06-18T15:27:02-07:00

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!

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

Re: Jaggy edges

Post by fmw42 » 2018-06-18T18:10:00-07:00

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

stockphotos
Posts: 24
Joined: 2018-06-17T12:09:46-07:00
Authentication code: 1152

Re: Jaggy edges

Post by stockphotos » 2018-06-18T23:01:53-07:00

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.

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

Re: Jaggy edges

Post by fmw42 » 2018-06-19T09:05:56-07:00

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.

stockphotos
Posts: 24
Joined: 2018-06-17T12:09:46-07:00
Authentication code: 1152

Re: Jaggy edges

Post by stockphotos » 2018-06-19T13:52:27-07:00

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

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

Re: Jaggy edges

Post by fmw42 » 2018-06-19T14:50:52-07:00

Here is my result.

Code: Select all

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

Image

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

Re: Jaggy edges

Post by snibgo » 2018-06-19T15:31:15-07:00

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.
snibgo's IM pages: im.snibgo.com

stockphotos
Posts: 24
Joined: 2018-06-17T12:09:46-07:00
Authentication code: 1152

Re: Jaggy edges

Post by stockphotos » 2018-06-22T16:36:45-07:00

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?

stockphotos
Posts: 24
Joined: 2018-06-17T12:09:46-07:00
Authentication code: 1152

Re: Jaggy edges

Post by stockphotos » 2018-06-22T16:40:38-07:00

BlueHost has ImageMagick 6.7.2-7 2017-03-22 Q16 installed on their servers. is this better?

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

Re: Jaggy edges

Post by fmw42 » 2018-06-22T17:06:48-07:00

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.

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

Re: Jaggy edges

Post by fmw42 » 2018-06-22T17:47:51-07:00

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

stockphotos
Posts: 24
Joined: 2018-06-17T12:09:46-07:00
Authentication code: 1152

Re: Jaggy edges

Post by stockphotos » 2018-06-23T19:31:22-07:00

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.

stockphotos
Posts: 24
Joined: 2018-06-17T12:09:46-07:00
Authentication code: 1152

Re: Jaggy edges

Post by stockphotos » 2018-06-23T19:32:07-07:00

Fred, Thanks so much! I'll keep you guys posted. I highly appreciate your assistance!

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

Re: Jaggy edges

Post by fmw42 » 2018-06-23T20:41:15-07:00

Did you check your version of Ghostscript? That could just be the issue.

stockphotos
Posts: 24
Joined: 2018-06-17T12:09:46-07:00
Authentication code: 1152

Re: Jaggy edges

Post by stockphotos » 2018-06-23T23:34:30-07:00

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

Post Reply