> 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.

![](/files/Pc3rsMtF20qiySw9KfnE)

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

![](/files/XXcgahk4wmqLdDkDYA8j)

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

![](/files/lPgB8264MB44s1lJ0yH7)

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

![](/files/z3E4hSdUsDXv0O4fmRQ1)

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

![](/files/FV7mcQ64qIHa9xmC7QeZ)


---

# 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.sharinpix.com/documentation/features/download-images/personalized-image-download-for-a-specific-size-format.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.
