# SharinPix Album: Multiple Image ZIP Download

This article demonstrates how to download selected images from a SharinPix album as a ZIP. By default, downloads are in **Original** (unchanged formats), but you can also enable **Current** (edited JPG) or have both.

{% hint style="warning" %}
**Prerequisite:**

Activate ZIP downloads by enabling the **Download ZIP** option. This can be configured via:

* [SharinPix Global Settings](#sharinpix-global-settings)
* [SharinPix Permission Record](#sharinpix-permission-record)
* [Visualforce Implementation](#visualforce-implementation)
  {% endhint %}

## Download Options

Depending on which download options are enabled, images can be downloaded in their original format, the edited JPG format, or both.

| Download Options Enabled          | Download Zip Image Formats                                |
| --------------------------------- | --------------------------------------------------------- |
| Download zip                      | Original unedited image                                   |
| Download zip + Original           | Original unedited image                                   |
| Download zip + Current            | Image with current edits/transformations converted to JPG |
| Download zip + Original + Current | Both Original and Current image formats                   |

### SharinPix Global Settings

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-2edd34da07a30f650382544266c1fd9f3f4c979a%2FSharinPix%20Global%20Settings%20Multiple%20Download.png?alt=media)

{% hint style="info" %}
**Info:**

For more information on how to access and configure the *SharinPix Global Settings*, please refer to:

[How to use the SharinPix Global Settings](https://app.gitbook.com/s/2putv2B9RAZpym8daOH2/advanced-configuration-customizing-your-sharinpix-components-with-sharinpix-permissions)
{% endhint %}

### SharinPix Permission Record

In the **Download Types** field, enter **original**, **current**, or both separated by a semicolon **(original; current)**. Refer to the [Download Options](#download-options) table above.

![](https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2Fgit-blob-6f9d2c35f9e11332fff73f313edcdf08fbda4888%2FSharinPix%20Permission%20Multiple%20Download.png?alt=media)

{% hint style="info" %}
**Info:**

For information on how to access and configure a *SharinPix Permission record*, please refer to:

[How to create and use the SharinPix Permission record](https://docs.sharinpix.com/documentation/access-and-security/sharinpix-permission-object-how-to-create-and-assign-custom-permission)
{% endhint %}

### Visualforce Implementation

You can have more controls on the download formats with '**download\_types': \['original', 'current']** or just enable download zip with **'download': true**. Refer to the [Download Option](#download-options)s table above.

```
<apex:page standardController="Opportunity"> 
 <sharinpix:SharinPix height="500px" 
	parameters="{
     'Id': '{!CASESAFEID($CurrentPage.parameters.Id)}', 
     'download': true,
     'download_types': ['original', 'current'],
     'abilities':{'{!CASESAFEID($CurrentPage.parameters.Id)}':
         	{'Access': {
            'image_tag':true,
            'paste':true,
            'image_copy':true,
            'image_download':true,
            'image_rotate':true,
            'image_crop':true,
            'image_delete':true,
            'image_upload':true,
            'image_list':true,
            'see':true 
            }
			   }
	   }
	}" 
	/> 
</apex:page>
```

{% hint style="info" %}
**Info:**

For more information on how to configure your *VisualForce page*, please refer to:

[Learn more on Visualforce Implementation](https://docs.sharinpix.com/documentation/features/download-images/multiple-image-download-zip-how-to-add-download-true-to-a-visualforce-page)
{% endhint %}

## Demo

The example below demonstrates how to download selected images as a ZIP file.

1\. Select some images from the album by clicking on the **selection icons.**

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

2\. Once the images are selected, click on the **selection dropdown.**

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

3\. Next, click on the **Download** option.

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

4\. Depending on which options were enabled as described in the [Download Types](#download-options) table, you will see one or more download zip buttons. The zip file will begin downloading once one of the available download zip buttons is clicked.

* A single **Download ZIP** button is available when enabled with **Download Zip** alone, or combined with **Original only**, or with **Current only**.

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

* Two **Download ZIP** buttons are available when **Download ZIP** , **Original** , and **Current** options are all enabled.

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

{% hint style="success" %}
**Tips:**

SharinPix also allows you to personalize the download filenames. For more information on how to configure the filenames, refer to the article below:

[Multiple Image download (ZIP) - How to personalize the download filenames](https://docs.sharinpix.com/documentation/features/download-images/multiple-image-download-zip-how-to-personalize-the-download-filenames)
{% endhint %}
