[Tex/LaTex] I encountered an ‘errorUnknown graphics extension: .eps.’


I tried to load an .eps picture, but an error occured,

errorUnknown graphics extension: .eps.

Best Answer

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.

Related Question