Large View: Toolbar - Crop with Aspect Ratios
SharinPix allows you to crop an image from an album to a specified aspect ratio.
In this article, we will show you how to specify aspect ratios using:
SharinPix Permission Object (This method is suitable for admins)
To crop an image to a specified aspect ratio, you first need to access the crop Editing mode by:
1. Clicking on the image to access the large view:

2. Selecting the crop option to activate the Editing mode:

3. Accessing the Aspect Ratio feature from the Editing mode:

Specify Aspect Ratios Using SharinPix Permission (Admin-Oriented)
Aspect ratios can be easily specified using the SharinPix Permission object (an object allowing users to configure the features to be added or omitted from a SharinPix album).
To specify aspect ratios using SharinPix Permission:
Create or edit a SharinPix Permission record
In the Toolbar section, check the option Crop images. Then, enter the aspect ratios you intend to use in the Crop ratio section as demonstrated in the example below:

Check the other features you want to apply to the SharinPix album and click save when done
You can also display labels in the Aspect Ratio list available from the Editing mode instead of the actual values.
To do so, simply use the following format in the Crop ratio section in your SharinPix Permission record:
4:3|Banner;1:1|Square;16:9|Landscape;free|Free

The result is depicted in the example below:

Specify Aspect Ratios Using SharinPix Parameters (Developer-Oriented)
Aspect ratios can also be specified using SharinPix Parameters and subsequently used in a SharinPix album wrapped within a Visualforce Page.
To specify aspect ratios using SharinPix parameters:
Create an Apex Controller that will define the SharinPix album's parameters (including the part on aspect ratios specification) using the code snippet below:
Next, implement the Visualforce Page embedding the SharinPix album with the applied parameters using the code snippet below:
Finally, add the Visualforce Page to the Account record layout so as to test the aspect ratios


