2

Latex compiled fine for me until a second ago, I don't know if I did something (I think not), but suddenly it threw me this error: no image ending in "png" loads. The folder with images is as usual, I think something was changed in the latex configuration that I don't understand how

In "message/log" it is written:

I could not locate the file with any of these extensions: .eps,.ps,.eps.gz,.ps.gz,.eps.Z,.mps

and

! LaTeX Error: Cannot determine size of graphic in figures/decisiontree1.png

I think I need to add "png". If so, how do I do it?

Attached photo where it does not compile any image

enter image description here

Ingmar
  • 6,690
  • 5
  • 26
  • 47
Strovic
  • 55
  • 1
  • 6

1 Answers1

5

LaTeX with dvips can only includes a specific subset of images (see Graphics file extensions and their order of inclusion when not specified). The most common include .ps and .eps. If you wish to include other formats (like .png, .jpg, ...) you'll have to use a different compile, like pdfLaTeX.

You .log shows

I could not locate the file with any of these extensions:
.eps,.ps,.eps.gz,.ps.gz,.eps.Z,.mps

which indicates the order in which the specific compilation driver searched for image extensions if it could find a corresponding image file. Switching to an appropriate compiler/driver for the image format (like pdfLaTeX in your case) or converting the image format before compilation will fix the issue.

Werner
  • 603,163