Transformation &t=

Sets how the image is fitted to its target dimensions. Below are a couple of examples.

Fit &t=fit

Default. Resizes the image to fit within the width and height boundaries without cropping, distorting or altering the aspect ratio. Will not oversample the image if the requested size is larger than that of the original.

http://api.revplit.com/resize/?url=revplit.com/lichtenstein.jpg&w=300&h=300&t=fit

<img src="//api.revplit.com/resize/?url=revplit.com/lichtenstein.jpg&w=300&h=300&t=fit">

Fitup &t=fitup

Resizes the image to fit within the width and height boundaries without cropping, distorting or altering the aspect ratio. Will increase the size of the image if it is smaller than the output size.

http://api.revplit.com/resize/?url=revplit.com/lichtenstein.jpg&w=300&h=300&t=fitup

<img src="//api.revplit.com/resize/?url=revplit.com/lichtenstein.jpg&w=300&h=300&t=fitup">

Square &t=square

Resizes the image to fill the width and height boundaries and crops any excess image data. The resulting image will match the width and height constraints without distorting the image. Will increase the size of the image if it is smaller than the output size.

http://api.revplit.com/resize/?url=revplit.com/lichtenstein.jpg&w=300&h=300&t=square

<img src="//api.revplit.com/resize/?url=revplit.com/lichtenstein.jpg&w=300&h=300&t=square">

Squaredown &t=squaredown

Resizes the image to fill the width and height boundaries and crops any excess image data. The resulting image will match the width and height constraints without distorting the image. Will not oversample the image if the requested size is larger than that of the original.

http://api.revplit.com/resize/?url=revplit.com/lichtenstein.jpg&w=300&h=300&t=squaredown

<img src="//api.revplit.com/resize/?url=revplit.com/lichtenstein.jpg&w=300&h=300&t=squaredown">

Absolute &t=absolute

Stretches the image to fit the constraining dimensions exactly. The resulting image will fill the dimensions, and will not maintain the aspect ratio of the input image.

http://api.revplit.com/resize/?url=revplit.com/lichtenstein.jpg&w=300&h=300&t=absolute

<img src="//api.revplit.com/resize/?url=revplit.com/lichtenstein.jpg&w=300&h=300&t=absolute">