# 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: 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:

```
GET https://docs.overleaf.com/writing-and-editing/inserting-images/pasting-images-into-your-project.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
