# 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="/files/MRoq4J5x0sFoZNooXWgH" 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="/files/6Ewl3tROrEBVUQgykkwb" 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="/files/ZqN5kQrJnsc6DaZR17kL" 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="/files/Mm9idvvTUhENYIsV9wyc" 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="/files/vYl7493A5jwA1yvhO2Gm" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sharinpix.com/documentation/image-sync/sharinpix-transformations-examples.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
