Skip to content

Instantly share code, notes, and snippets.

@tlatsas
Created August 26, 2011 09:17
Show Gist options
  • Save tlatsas/1173033 to your computer and use it in GitHub Desktop.
Save tlatsas/1173033 to your computer and use it in GitHub Desktop.
$ convert -quality 80 fig.png fig.jpg
I find a quality factor of 80 on high resolution images gives good compresssion without too much loss in quality. You can then to convert the image to eps using "convert" with the eps2 settings:
$ convert fig.jpg eps2:fig.eps
If you can use level 3 postscript, you can convert directly from png to eps:
$ convert fig.png eps3:fig.eps
Using level 3 postscript from a png image file for scientific figures will often produce a very small eps file. Ghostscript is compatible with these level 3 eps files, so this is often a good way to go.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment