TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a document which under normal conditions compiles into a reasonably-sized output - 1 MB PDF and 2 MB PS. I need to add two raster images, also reasonably-sized - About 150 KB JPG each.

I tried the simple approach, and converted the images to PDF and PS. The graphical results are excellent, but the output grew in size to 2 MB PDF and 8 MB PS (!).

What is the best strategy for converting and including these images in the document, that will not blow up the size of the output significantly? Ideally, I prefer to have both a DVI->PS output and PDF output, but only the PDF is a must.

share|improve this question
up vote 3 down vote accepted

You can use jpeg2ps utility to convert JPEG images to EPS format. It does not uncompress the images.

share|improve this answer
It might be what I am looking for. – xport Dec 30 '10 at 10:43

You may use this approach, but for conversion use this command:

`convert -compress zip #1 eps2:-

It requires ImageMagick's convert.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.