Home > bash > PNG to EPS



You use “latex” and you want to convert a PNG file to EPS format. Using Gimp, for instance, produces an ugly output.


Try the png2eps script of Henlich. Works fine :)

Under Ubuntu 10.10, I had to install the following package:

sudo apt-get install pngcheck

Plus, I had to remove the -indexbits=… option from the script.


Thanks Mehdi for the tip.

Categories: bash Tags: , , ,
  1. Mehdi
    December 22, 2010 at 15:38

    ^^ so useful for me!

    • December 22, 2010 at 15:43

      Thanks for the tip. But why do you use PNGs? When working with LaTeX, I use Visio 2000 to create images, and then I save them in EPS. I have a script to convert EPS to PDF. What’s your method?

  2. Mehdi
    December 22, 2010 at 15:48

    Sometimes i need to screenshot, e.g. lattices from conexp.
    Otherwise for figures i use pstricks direcly in latex.

  3. Mehdi
    December 22, 2010 at 15:53

    why did you remove -indexbits=… ?

    • December 22, 2010 at 15:56

      The script dropped an error. As the author says: “Png2eps requires netpbm 10.1 or higher. For older netpbm versions, edit the script and remove the -indexbits=… option.” It seems my Ubuntu 10.10 is outdated :)

  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: