> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/it/errori-latex/21-latex-error-unknown-graphics-extension-.xxx.md).

# Errore LaTeX: estensione grafica sconosciuta: .XXX

Questo errore appare quando hai utilizzato un'estensione grafica che LaTeX non riconosce. Può comparire anche quando hai usato un percorso file 'errato' che fa confondere LaTeX.

I formati immagine consentiti in LaTeX dipendono dalla scelta del compilatore che stai utilizzando. Questo è specificato nel menu a sinistra come mostrato qui sotto.

![Choosecompiler.PNG](/files/2879e9000c1918a16c11b2fc789348c265ad8d66)

**Compilando con `pdfLaTeX`:**

Quando si compila con `pdfLaTeX`, hai un'ampia scelta di formati immagine tra cui scegliere. Sono elencati qui sotto

* JPG - Questo è il formato immagine più comune per un uso di base. Non occupa molto spazio ed è utile per inserire immagini nella maggior parte dei casi.
* PNG - Questo è un altro formato molto comune. È migliore per le immagini che richiedono una risoluzione più alta poiché è un formato senza perdita di dati. I diagrammi dovrebbero essere inclusi in formato PNG
* EPS - Per usare immagini EPS quando si compila con `pdfLaTeX`, devi usare il [`epstopdf` pacchetto](https://www.google.ie/#q=ctan+etstopdf).
* PDF - Questo è utile per includere documenti nei tuoi progetti LaTeX. Supporta immagini vettoriali, come EPS, e per questo è molto utile quando vuoi immagini ad alta risoluzione per documenti grandi come i poster.

**Compilazione con LaTeX:**

Quando si compila con LaTeX, l'unico formato immagine che puoi usare è *PostScript incapsulato* o *EPS*. I file EPS sono basati su vettori, il che significa che le immagini sono invarianti al ridimensionamento ed è utile se vuoi creare documenti grandi come poster, con immagini di alta qualità. I file EPS dichiarano naturalmente la dimensione dell'immagine, quindi per LaTeX è più facile strutturare il testo e la grafica in modo gradevole.

## Cause comuni

**Uso di un formato immagine non supportato:**

La causa più comune di questo errore è quando viene utilizzato un formato immagine non supportato da un determinato compilatore, come **`.gif`** o **`.ps`** viene utilizzato. Il modo migliore per aggirare il problema è convertirlo in un formato supportato ogni volta che è possibile.

**Uso di un nome file errato:**

Ogni volta che LaTeX vede un punto, interpreterà tutto ciò che segue come estensione del file. Pertanto, se nel nome del file è presente un punto, come ad esempio `image.logo.jpg`, LaTeX si confonderà perché penserà che l'estensione del file sia `.logo.jpg`. Per questo motivo, devi sempre nominare le tue immagini in modo che non abbiano punti nel titolo.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/it/errori-latex/21-latex-error-unknown-graphics-extension-.xxx.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
