# SharinPix Transformations Examples

This article demonstrates the different types of transformations that can be applied to an image in a SharinPix Album.

## Fill to Size

* Create an image with the exact given width and height while retaining the original aspect ratio. (height = width = 250 pixels)

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2FCIOSIPKig8EoMLzFCI1m%2Ftest.png?alt=media&#x26;token=7d64cc94-9a29-49e8-9b54-b5215ee92d71" alt=""><figcaption></figcaption></figure>

## Fit to Size

* The image is resized so that it takes up as much space as possible within a bounding box defined by the given width and height values. (height = width = 250 pixels)

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2F6T08NHFck7o97TejAsdT%2Ftest.png?alt=media&#x26;token=f9435d5d-cb6b-49d7-8105-f3344b3e6608" alt=""><figcaption></figcaption></figure>

## Pad to Size

* Resize the image to fill the given width and height while retaining the original aspect ratio and with all of the original image visible. (height = width = 200 pixels)

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2FFAy2d0jaeomZAIk1E3b0%2Ftest.jpg?alt=media&#x26;token=ff7ac9cc-7c38-4577-a726-40ae6ba42434" alt=""><figcaption></figcaption></figure>

## Scale to Size

* Change the size of the image exactly to the given width and height without necessarily retaining the original aspect ratio. (height = width = 150 pixels)

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2FBSVqodn1TX4PnYJiYRIK%2Ftest.jpg?alt=media&#x26;token=13ab9cad-9968-4d2b-aec3-60f3fe7cbb67" alt=""><figcaption></figcaption></figure>

## Limit to size

* Limit the image's width and height to a specific value. If the image dimensions exceed the specified value(s), the image is down scaled to match the same. Else the image dimensions are retained. In the example below, the **Limit to size** value has been set to 250 pixels (height=width = 250 pixels) and the original image size is 300x300. Therefore, the image has been down scaled to a height and width of 250 pixels.

<figure><img src="https://2221230591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5EvYRrLbUyvRh8o1jmMG%2Fuploads%2FYsoys8uiezBjIQPqfh8N%2Ftest.jpg?alt=media&#x26;token=cef64cb9-2ff5-476f-8d1a-3af2907a6243" alt=""><figcaption></figcaption></figure>
