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.

Prerequisite:

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

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 

Info:

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

How to use the SharinPix Global Settings

SharinPix Permission Record

In the Download Types field, enter original, current, or both separated by a semicolon (original;current). Refer to Download Options table above.

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

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 Download Options 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>
Click to copy

Info:

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

Learn more on Visualforce Implementation

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.

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

3. Next, click on the Download option.

4. Depending on which options were enabled as described in the Download Types 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.
  • Two Download ZIP buttons are available when Download ZIP, Original, and Current options are all enabled.

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