> 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/ja/latexer/21-latex-error-unknown-graphics-extension-.xxx.md).

# LaTeXエラー: 不明な画像拡張子: .XXX

このエラーは、LaTeX が認識しない画像拡張子を使用したときに表示されます。また、LaTeX を混乱させる「不適切な」ファイルパスを使用したときにも表示されることがあります。

LaTeX で使用できる画像形式は、使用しているコンパイラの選択によって異なります。これは、下図のように左側のメニューで指定されます。

![Choosecompiler.PNG](/files/51f65fd62afa1ef33ccbab94e96f8d02d4d8916e)

**〜でコンパイルする `pdfLaTeX`:**

〜でコンパイルするとき `pdfLaTeX`、選べる画像形式の選択肢が豊富にあります。以下に一覧を示します

* JPG - これは基本的な用途で最も一般的な画像形式です。あまり容量を取らず、ほとんどの場合で画像を挿入するのに便利です。
* PNG - これも非常によく使われる形式です。可逆形式であるため、より高解像度を必要とする画像に適しています。図は PNG 形式で含めるべきです
* EPS - 〜でコンパイルする際に EPS 画像を使用するには `pdfLaTeX`、〜を使用する必要があります [`epstopdf` パッケージ](https://www.google.ie/#q=ctan+etstopdf).
* PDF - これは、LaTeX プロジェクトに文書を含めるのに便利です。EPS と同様にベクター画像をサポートしているため、ポスターのような大きな文書で高解像度の画像を使いたいときに非常に便利です。

**LaTeX でコンパイルする場合:**

LaTeX でコンパイルする場合、使用できる画像形式は *Encapsulated PostScript* または *EPS*. EPS ファイルはベクターベースであり、つまり画像は拡大縮小しても変化せず、ポスターのような大きな文書を高品質な画像で作成したい場合に便利です。EPS ファイルは画像サイズを自動的に宣言するため、LaTeX がテキストと図版をきれいに配置しやすくなります。

## 一般的な原因

**サポートされていない画像形式を使用する場合:**

このエラーの最も一般的な原因は、次のような特定のコンパイラでサポートされていない画像形式を使用する場合です。 **`.gif`** または **`.ps`** が使用されることです。これを回避する最善の方法は、可能な限りサポートされている形式に変換することです。

**不適切なファイル名を使用する場合:**

LaTeX はピリオドを見ると、その後に続くものをファイル拡張子として解釈します。したがって、次のようにファイル名にピリオドが含まれている場合は `image.logo.jpg`、LaTeX は混乱します。というのも、ファイル拡張子が `.logo.jpg`。このため、画像のタイトルにはピリオドを含めないように、常に画像に名前を付けなければなりません。


---

# 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/ja/latexer/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.
