Overview
Sources
Libraries
Images API

Upscale upscale

Resize images beyond their original size.

In some scenarios it is desirable to not resize images above their original size to avoid losing resolution. In those cases you can use upscale=false so images will never be resized beyond their original size.

Values

  • true or 1: images will be resized beyond it's original size if necessary.
  • false or 0: image will not be resized beyond it's original size.

The default value for this parameter is true.

Examples

In this example we are using upscale=false and setting values for width and height parameters that are bigger than the original size of the image.

Because we are disabling upscale with upscale=false the image will not be resized beyond their original size:

GET
https://assets.imglab-cdn.net/woman-03-small.jpeg?width=1000&height=1000&upscale=false
Woman posing with upscale parameter disabled not resized beyond their original size.
x px