Square thumbnail

On this page

You can create square thumbnail images with the thumbnail option. Here is a 180px thumbnail image:

https://demo.sirv.com/look.jpg?thumbnail=180

Longest/Shortest dimension

You can also scale images to fit a certain dimension, with the s option. The following will create an image up to 400px width or height (determined by the longer dimension):

https://demo.sirv.com/look.jpg?s=240

You make apply that size to the shortest dimension instead, by adding scale.option:

https://demo.sirv.com/look.jpg?s=240&scale.option=fill

These examples show how landscape and portrait images are resized, according to their shortest/longest dimension:

s=240
s=240&scale.option=fill
Landscape image resized to 240px, shortest dimension
Landscape image resized to 240px, longest dimension
Portrait image resized to 240px, shortest dimension
Portrait image resized to 240px, longest dimension

Was this article helpful?

Get help from a Sirv expert

help ukraine help ukraine Powered by Ukrainian determination and British ingenuity

How can you support Ukraine