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 tried to load an .eps picture, but an error occured,

errorUnknown graphics extension: .eps.

share|improve this question
Does it complain about .eps or about .eps. ? – Taco Hoekwater Aug 3 '11 at 18:28
up vote 11 down vote accepted

You are probably compiling your TEX document using pdftex (or pdflatex) while including an EPS image. This will not work. You need to convert the EPS to PDF (using something like the epstopdf package), or Distiller from Adobe Acrobat.

For more information on this type of problem, read the this UK TeX FAQ entry.

Alternatively, you may switch the compiler from pdftex to latex, which accepts EPS graphic format.

The best way around this is to never specify the graphic extension in your \includegraphics{...} command, but have both EPS and PDF versions of the file available. That will ensure that the correct type is used during compilation, as the driver will make the appropriate selection.

share|improve this answer
see also tex.stackexchange.com/questions/1072/… – Caramdir Aug 3 '11 at 18:19

if you have more than one dot in your graphic file name then use

share|improve this answer
My error message says, "! LaTeX Error: Unknown graphics extension: .eps." I added what you said but It doesn't help. It gives me the same error. – kami Sep 23 '11 at 23:07
There is a trailing dot at the end .end. Remove it from your graphic file name. It looks like that you have a file name like myimage.eps. – Herbert Sep 24 '11 at 11:30

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.