[OS X TeX] converting jpg to eps

Tom Koornwinder thk at science.uva.nl
Wed Mar 8 18:50:50 EST 2006


On 6 Mar 2006 01:01 +0100, I wrote:

> The converter jpeg2ps from jpg to eps format can be downloaded from
> http://www.pdflib.com/products/more/jpeg2ps.html

Some of the replies were:

On 5 Mar 2006 20:43 -0500, Stephen Moye wrote:

> I didn't know about jpeg2ps so will look it up. I do, however, use
> Imagemagick (from GW's i-Installer) to accomplish this with:
> 
> % convert foo.jpg foo.eps

On 6 Mar 2006 17:17 +0100, Piet van Oostrum wrote:
> Yes, but generally this generates (much) larger EPS files.

On 6 Mar 2006 22:42 +0100, Maarten Sneep wrote:
> Unless you specify that the generated file should be eps2:
> 
> % convert foo.jpg eps2:foo.eps

On 07 Mar 2006 12:29 +0100, Piet van Oostrum wrote:
> It appears that jpeg2ps encodes the JPEG binary data with ASCII85 encoding
> to get an ASCII file, unless you give it the -b option. Depending on the
> compile-time options it could even use Hex encoding instead of ASCII95
> which will double the file size.
> 
> Output of jpeg2ps -b: 199018 bytes

So there are four options for converting jpg to eps:

% convert foo.jpg foo.eps 
% convert foo.jpg eps2:foo.eps
% jpeg2ps foo.jpg>foo.eps
% jpeg2ps -b foo.jpg>foo.eps 

However, the first method generates too large files (rejected by arXiv)
and the second and fourth method give an error message with ps2pdf:
> ### ps2pdf13 /tmp/altpdflatex.18314-1141860914/test.ps /tmp/altpdflatex.18314-1141860914/test.pdf
> Error: /undefined in ...
> ...
> AFPL Ghostscript 8.51: Unrecoverable error, exit code 1

So the third method is the only possible one for me.

		Tom Koornwinder
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the MacOSX-TeX mailing list