Skip to content

Rhaptos Software Development

Personal tools
You are here: Home » Developer Blog » Brian's Sooth » Converting LaTeX .eps files to .png files

Converting LaTeX .eps files to .png files Converting LaTeX .eps files to .png files

Document Actions
Submitted by bnwest. on 2007-08-23 16:16. Development
Converting LaTeX .eps files to .png files.

Motivation: hermes does not convert .eps files to .png files, just assumes the .png files are there.

Thus, I googled for utilities to do the conversion. Ended up finding eps2png here : http://search.cpan.org/~jv/eps2png-2.5/script/eps2png.

Following the install instructions in the README (from the tarball), I installed eps2png (a PERL script) on stevens /usr/local/bin.

eps2png failed for some of Ray's .eps files, which displayed fine but had a slightly mangled first line.  I changed eps2png to be more forgiving about the first line and called it eps2png-bnw, which now handles all of Ray's .eps files.

eps2png-bnw failed for some of Don Johnson's .eps files.

Back to Square 1.

The standard way to convert images on Linux is to use ImageMagik's command line convert. I vaguely recall that convert had problems with Ray's eps files.

Command mogrify is convert packaged to handle multiple files at once e.g.

mogrify -format png *.eps

mogrify converted Don's eps files without incidence.  TO DO: see what mogrify does to ray's eps files.