# Update image sizes

A common requirement is to provide an initial width/height for an image. We do this so that the browser knows how much space to reserve for the image. This keeps the page from jumping around before and after the image is downloaded from the server.

You can use Emmet to automatically update image sizes.&#x20;

* Put your cursor in the `img` tag in the "index.html" page
* Open the Command Palette (**Cmd/Ctrl + Shift + P**)
* Select "Emmet: Update Image Size"

![](https://1151923643-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LlvtEHKkq5bvzPq1pJ4%2F-LlvtJMfPaOZK9HU1qdu%2F-LlwqxbCQnsWOQcjU4LN%2Fimage.png?alt=media\&token=fda878a5-a27b-4994-84df-b7293ce29fb4)

{% hint style="info" %}
Note that this also works for remote images - those referenced by URL. It also works for images in CSS - like the background image you specified.&#x20;
{% endhint %}


---

# 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://burkeholland.gitbook.io/vs-code-can-do-that/exercise-2-productivity-tricks/update-image-sizes.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.
