# Personalized image download with annotations (Developer-Oriented)

The present article will show how it is possible to create a custom hyperlink that will download the image along with its corresponding annotations.

{% 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/custom-annotation-download>
{% endhint %}

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

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2FokLjvRVcrtPW5riDzIoz%2Fimage%20(14).png?alt=media&#x26;token=f137de46-d77f-4dff-90cd-256f95f62002" alt=""><figcaption></figcaption></figure>

* Upon clicking on an image's thumbnail, the **Download Image** hyperlink appears.

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

* When clicking on the **Download Image** hyperlink, the image that is currently being viewed is downloaded along with its annotations.

{% hint style="warning" %}
For the example to work, the image to be downloaded must already possess one or more annotations.
{% endhint %}
