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

# خطأ LaTeX: امتداد رسومي غير معروف: .XXX

يظهر هذا الخطأ عندما تكون قد استخدمت امتدادًا رسوميًا لا يتعرف عليه LaTeX. وقد يظهر أيضًا عندما تكون قد استخدمت مسار ملف «سيئًا» يتسبب في ارتباك LaTeX.

تعتمد صيغ الصور المسموح بها في LaTeX على اختيار المترجم الذي تستخدمه. ويُحدَّد ذلك في القائمة الموجودة على اليسار كما هو موضح أدناه.

![Choosecompiler.PNG](/files/9c3cd7af3a6c0d72d7a3667c9d1c6c3e574bb5d0)

**الترجمة باستخدام `pdfLaTeX`:**

عند الترجمة باستخدام `pdfLaTeX`، لديك مجموعة واسعة من صيغ الصور للاختيار من بينها. وهي مدرجة أدناه

* JPG - هذه هي صيغة الصور الأكثر شيوعًا للاستخدام الأساسي. لا تستهلك مساحة كبيرة وهي مفيدة لإدراج الصور في معظم الحالات.
* PNG - هذه أيضًا صيغة شائعة جدًا. وهي أفضل للصور التي تتطلب دقة أعلى لأنها صيغة بلا فقدان. يجب تضمين الرسوم البيانية بصيغة PNG
* EPS - لاستخدام صور EPS عند الترجمة باستخدام `pdfLaTeX`، يجب أن تستخدم [`epstopdf` الحزمة](https://www.google.ie/#q=ctan+etstopdf).
* PDF - هذا مفيد لتضمين المستندات في مشاريع LaTeX الخاصة بك. وهو يدعم الصور المتجهة، مثل EPS، ولذلك فهو مفيد جدًا عندما تريد صورًا عالية الدقة لمستندات كبيرة مثل الملصقات.

**الترجمة باستخدام LaTeX:**

عند الترجمة باستخدام LaTeX، فإن صيغة الصور الوحيدة التي يمكنك استخدامها هي *بوستسكريبت مغلّف* أو *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/ar/akhtaa-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.
