Image tools
From SurfLab
Create smaller encapsulated postscript (eps) files
Introduction
jpeg2ps (installed on Linux machines) is a nifty utility that converts .jpeg files to .eps without re-encoding the image. Instead it simply wraps the .jpeg within the .eps. For example, it would be used as follows:
jpeg2ps file.jpg > file.eps
Utilities based on jpeg2ps
All of these utilities exist in geogp/bin.
You can convert a large number of JPEG files to .eps easily using jpeg_to_eps and jpeg_all_to_eps. Runs these programs without arguments to see directions.
jpeg_all_to_eps *.jpg
If you do not already have JPEG files, then convert_to_eps and convert_all_to_eps will make intermediate JPEG files and convert them into efficient .eps files. Run these programs without arguments to see directions.
convert_all_to_eps *.png
If you have only JPEG files, it is better to use jpeg_all_to_eps to avoid an unnecessary increase in image size unless you wish to use the --quality flag of convert_all_to_eps to reduce quality to begin with.
Existing .eps files can be compressed similarly using compress_eps and compress_all_eps. Run these programs without arguments to see the usage. By default, these programs convert only .eps files containing 'colorimage' commands in an effort to avoid vector-only files. However, sometimes you don't want to convert a file containing 'colorimage' because it may additionally have vector graphics. When using compress_all_eps on all the files in a directory, a safe way to not convert such files (those containing 'colorimage' + vector graphics) is to make backup copies of these files, and restore the originals after compress_all_eps has completed on the rest of the files.
compress_all_eps *.eps
