> 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/qaadh-almarfh/088-including-images-on-overleaf.md).

# تضمين الصور في Overleaf

عند تحرير المستندات على Overleaf، من السهل إدراج الصور. تشرح هذه المقالة كيفية رفع الصور إلى مشاريعك من جهاز الكمبيوتر أو من رابط URL، وكيفية تضمينها في مستنداتك المنسقة.

## رفع بسيط للصور

|                                                                                                                                                 |                                                                        |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| لرفع صورة، في المحرر انتقل إلى الزاوية العلوية اليسرى وانقر على أيقونة الرفع ![Uploadicon.png](/files/094510e8886e51b8a36ae480933a50409e160747) | ![V2uploadbutton.png](/files/2fe6da40c4fa352f8a2f11bc285ac955a6e4b0a7) |

|                                 |                                                                          |
| ------------------------------- | ------------------------------------------------------------------------ |
| ستظهر لك نافذة حوار لرفع ملفاتك | ![V2uploaddialogue.png](/files/5ca14fad795b3766f2e25cd763aa05cfa92dbde6) |

|                                                                                      |                                                                            |
| ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------- |
| هناك يمكنك إما سحب ملفاتك وإفلاتها أو النقر على ***تحديد الملفات*** لفتح متصفح ملفات | ![UploadingImagesEx3.png](/files/d6c44bee8799e8abdc8b78f3f66e5617cf4854d7) |

|                                                                                                                                            |                                                                             |
| ------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- |
| انتقل إلى المجلد الصحيح وحدد الصور التي تريد رفعها. يمكنك رفع عدة ملفات دفعة واحدة. بعد اكتمال عملية الرفع ستظهر الملفات في اللوحة اليسرى. | ![UploadingImagesEx3b.png](/files/7fa43747bcc60d571b447887d1f44d30db385590) |

يمكنك الآن استخدام صورك داخل ملف LaTeX الخاص بك، انظر المثال أدناه

```latex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\title{A project with images}
\author{Overleaf}
\date{}

\begin{document}

\maketitle

\section{Introduction}
\begin{figure}[htp]
    \centering
    \includegraphics[width=4cm]{InsertingImagesEx5}
    \caption{An image of a galaxy}
    \label{fig:galaxy}
\end{figure}

\end{document}
```

![UploadingImagesEx5b.png](/files/e14a9dc13f7ccd0120a92478a04b55d9ebe7ba40)

لاحظ أن اسم ملف الصورة فقط هو الذي يُمرَّر كوسيط في `\includegraphics[width=4cm]{lion-logo}`

للحصول على مزيد من المعلومات حول التعامل مع الصور في LaTeX، راجع [القراءة الإضافية](#further-reading) للحصول على روابط إلى صفحات توثيق أخرى.

## رفع الصور إلى مجلد

إذا كان مشروعك يتضمن عدة صور، فقد تحتاج إلى وضعها في مجلد منفصل للحفاظ على تنظيم كل شيء.

|                                                                                                                                                                  |                                                                             |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| لإنشاء مجلدات في Overleaf، انتقل إلى الزاوية العلوية اليسرى من المحرر وانقر على أيقونة المجلد ![Foldericon.png](/files/dd32450c2e278252993b84d9af4eae297f2b8083) | ![UploadingImagesEx6b.png](/files/d5fa623277bc45f34cb467cad46a7b1fbb8bbc24) |

|                                                              |                                                                             |
| ------------------------------------------------------------ | --------------------------------------------------------------------------- |
| ستظهر لك خانة إدخال؛ عيّن اسمًا لمجلدك وانقر على ***إنشاء*** | ![UploadingImagesEx7b.png](/files/d87a2d7a67943f719fe2dba0506b8655aea4ee6b) |

|                                                                                                                            |                                                                             |
| -------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| يمكنك الآن رؤية المجلد في اللوحة اليسرى. يمكنك سحب وإفلات الملفات التي تم رفعها بالفعل، حتى بين المجلدات في اللوحة اليسرى. | ![UploadingImagesEx8b.png](/files/cacc87c4607100ad3e2ce3897c44462ebd1f8dcc) |

لرفع الملفات مباشرة إلى مجلد، انقر على ذلك المجلد ثم انقر على ***جديد*** واتبع التعليمات الواردة في [القسم السابق](#simple-image-upload).

بعد أن يصبح لديك بعض الملفات في مجلدك، يمكنك استخدامها داخل مستندك، انظر المثال أدناه.

```latex
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\title{A project with images}
\author{Overleaf}
\date{}

\graphicspath{{Images/}}

\begin{document}

\maketitle

\section{Introduction}
\begin{figure}[htp]
    \centering
    \includegraphics[width=4cm]{InsertingImagesEx5}
    \caption{An image of a galaxy}
    \label{fig:galaxy}
\end{figure}

\end{document}
```

![UploadingImagesEx5b.png](/files/e14a9dc13f7ccd0120a92478a04b55d9ebe7ba40)

الأمر `\graphicspath{ {Images/} }` يخبر LaTeX بأن الصور مخزنة في *الصور*، والآن عليك فقط استخدام اسم الملف بدلاً من المسار الكامل في `\includegraphics`

لمزيد من المعلومات حول إدارة الصور في LaTeX، انظر في [القراءة الإضافية](#further-reading) للحصول على روابط.

## دليل سريع

* **دليل سريع لرفع صورة واحدة أو أكثر إلى مشروع Overleaf الخاص بك:**

في الزاوية العلوية اليسرى من المحرر، انقر على أيقونة الرفع، ثم يمكنك إما سحب الملفات وإفلاتها أو النقر على تحديد الملفات لتصفح المجلدات المحلية لديك. بعد اكتمال عملية الرفع، يمكنك استخدام هذه الصور في مستندك.

* **دليل سريع لرفع الصور إلى مجلد:**

لإنشاء مجلد جديد في المحرر، انقر على أيقونة المجلد، وعيّن اسمًا لمجلدك ثم انقر على إنشاء. الآن انقر على المجلد الذي أنشأته حديثًا واتبع العملية الموضحة في الفقرة السابقة لرفع الصور، أو اسحب الصور التي تم رفعها بالفعل وأفلتها في مجلدك.

## قراءة إضافية

للتعرّف أكثر على التعامل مع الصور في LaTeX، راجع.

* [إدراج الصور](/latex/ar/mzyd-mn-almwdhwaat/27-inserting-images.md)
* [تموضع الصور والجداول](/latex/ar/alashkal-waljdawl/02-positioning-images-and-tables.md)
* [قوائم الجداول والأشكال](/latex/ar/alashkal-waljdawl/03-lists-of-tables-and-figures.md)


---

# 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/qaadh-almarfh/088-including-images-on-overleaf.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.
