> For the complete documentation index, see [llms.txt](https://docs.sharinpix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sharinpix.com/documentation/features/download-images/personalized-image-download-for-a-specific-size-format.md).

# Personalized image download for a specific size/format

The present article will show how it is possible to create custom hyperlinks that will download the same specific image but in different sizes, namely:

* **Full** corresponds to a size of **1920 x 1280** pixels.
* **Thumbnail** corresponds to a size of **200 x 200** pixels.
* **Mini** corresponds to a size of **100 x 100** pixels.

{% hint style="info" %}
**Info:**&#x20;

The **Visualforce Page** and **Apex Class** used in the present article can be found on **GitHub** by following this link: <https://github.com/SharinPix/demo-apex/tree/personalized-size-download>
{% endhint %}

* In the present context, the **Visualforce Page** is launched from a **custom lightning action** found on the record page of the Contact object. The screenshot below shows the custom action being executed.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-7943914231d48cfd614bfce9b61f873ce88db7f0%2Fone.png?alt=media)

* Upon clicking on an image's thumbnail, several hyperlinks appear. Each of these hyperlinks downloads the current image in a different size.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-a73f19beb3f6d1dc6fa700d31f0e19003382c0c1%2Fthree.png?alt=media)

* Upon clicking on the **Download full Image** hyperlink, an image of size **1920 x 1280** pixels is downloaded.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-f98ec9363118e1c348803cfad98d19f5ac72c6e0%2F1920x1280.png?alt=media)

* Upon clicking on the **Download thumbnail Image** hyperlink, an image of size **200 x 200** pixels is downloaded.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-3f1b45e1edb24a57072c09ed47359544472e99b8%2F200x200.png?alt=media)

* Upon clicking on the **Download mini Image** hyperlink, an image of size **100 x 100** pixels is downloaded.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-c417c51efe3fa5790f2ceaff61fa233ab2802d2d%2F100x100.png?alt=media)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sharinpix.com/documentation/features/download-images/personalized-image-download-for-a-specific-size-format.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
