convert eps to gif with transparency gives jaggy result

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.
Post Reply
mwboy
Posts: 5
Joined: 2014-02-15T04:03:51-07:00
Authentication code: 6789

convert eps to gif with transparency gives jaggy result

Post by mwboy »

I have been using ImageMagick for many years to convert EPS to GIF files. This works fine in older versions of IM on my very old iMac. However, attempting the conversion in a modern version of IM on my newer machines consistently gives different and very ugly results. Any idea what the problem could be? Here is what I am doing:

Code: Select all

convert -colorspace rgb -transparent white -density 100% -interlace Plane infile.eps outfile.gif
infile:
https://www.dropbox.com/s/uqvq3s5rmwneduf/infile.eps

bad outfile:
https://www.dropbox.com/s/fooau4rxkey8v ... le-bad.gif

correct outfile:
https://www.dropbox.com/s/mx6bglk4eteck ... e-good.gif

Thanks,
-Eric
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert eps to gif with transparency gives jaggy result

Post by magick »

Try this command:
  • convert -colorspace rgb -transparent white -density 400 infile.eps -resize 25% -interlace Plane outfile.gif
mwboy
Posts: 5
Joined: 2014-02-15T04:03:51-07:00
Authentication code: 6789

Re: convert eps to gif with transparency gives jaggy result

Post by mwboy »

Thanks, but I'm afraid that's even worse than before:

https://www.dropbox.com/s/j273q704b4qix ... le-new.gif
mwboy
Posts: 5
Joined: 2014-02-15T04:03:51-07:00
Authentication code: 6789

Re: convert eps to gif with transparency gives jaggy result

Post by mwboy »

(FWIW, replacing outfile.gif with outfile.png in the original code gives a beautiful result)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert eps to gif with transparency gives jaggy result

Post by snibgo »

The result from ...

Code: Select all

convert infile.eps -background White -flatten e.gif
... looks good to me. IM v6.8.8-0 on Windows 8.1.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: convert eps to gif with transparency gives jaggy result

Post by dlemstra »

Did you install the latest version of GhostScript on your newer machine?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
mwboy
Posts: 5
Joined: 2014-02-15T04:03:51-07:00
Authentication code: 6789

Re: convert eps to gif with transparency gives jaggy result

Post by mwboy »

Yes: GPL Ghostscript 9.10 (2013-08-30)

And I should mention that even the output of

Code: Select all

convert infile.eps outfile-test.gif 
is bad :(
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: convert eps to gif with transparency gives jaggy result

Post by fmw42 »

what happens with

Code: Select all

convert -density 300 -colorspace sRGB infile.eps outfile-test.gif
mwboy
Posts: 5
Joined: 2014-02-15T04:03:51-07:00
Authentication code: 6789

Re: convert eps to gif with transparency gives jaggy result

Post by mwboy »

what happens with...
That output looks fine.
Post Reply