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.

Developer Blog
« May 2008 »
Su Mo Tu We Th Fr Sa
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Categories:
Content (55)
Copyright (0)
Deep Code (3)
Development (193)
Markup (22)
Metadata (1)
Printing (7)
Style (9)
Testing (2)
Usability (6)