C.1 Conversion of JPEG Images to Postscript

Users of the LaTeX typesetting system will have experienced frustration if they have ever tried to incorporate bitmap images – for example, those in jpeg format – into LaTeX documents. Whilst LaTeX’s includegraphics command allows for the easy incorporation of encapsulated postscript images into documents, bitmap images must be converted into postscript before they can be imported. ImageMagick’s convert command can perform such a conversion, but it does not produce efficient postscript, and the resulting postscript file sizes are often excessively large. PyXPlot’s jpeg command can perform much more efficient conversion:

set output image.eps
jpeg 'image.jpg' width 10