Operations - Image Scaling

Image Operations / Scaling

Image scaling allows you to transform the dimensions of your images by a given scale factor. Unlike image resizing, image scaling only accepts a floating point size parameter by which the image will be proportionally transformed. For example, if you'd like to have your images 50% smaller, you would specify 0.5 as a size value.

By default, image scaling will transform images according to their aspect ratio so they'll come out with perfect proportions. You may however, alter the ratio parameter and specify a floating point value for the aspect ratio. The aspect ratio value is the height divided by the width. The default ratio value is 1.0.

    "scale": {
        "size": 0.5,
        "ratio": 1.0