> For the complete documentation index, see [llms.txt](https://docs.overleaf.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overleaf.com/writing-and-editing/inserting-images/pasting-images-into-your-project.md).

# Pasting images into your project

{% hint style="danger" %}
Before pasting an image into your project, make sure your main LaTeX file has loaded the `graphicx` package by writing `\usepackage{graphicx}` within its [preamble](/getting-started/latex-tutorials.md).
{% endhint %}

You can paste single images into **Visual Editor** and **Code Editor** (but only **Visual Editor** provides an image preview). Pasting multiple images is not currently supported.

<figure><img src="/files/BvWu3797VjsvIwLGhXkD" alt="Image showing the Upload from computer modal window" width="375"><figcaption></figcaption></figure>

You can:

* Name the file used to save the pasted image.
* Choose the project folder in which to save it.
* Decide whether to use a figure caption.
* Decide whether to include a label (used for referencing the table).
* Configure the image width (as a fraction of `\linewidth`).

Any image you paste is saved as a `.png` file in your Overleaf project. It's then incorporated into your document using automatically generated LaTeX code. **Visual Editor** will provide a preview of the pasted image but **Code Editor** will display the LaTeX code only.


---

# 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://docs.overleaf.com/writing-and-editing/inserting-images/pasting-images-into-your-project.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.
