Scaling and positioning images

The distortion can be avoided by adding the letter m to one or both parameters:
file.width = 300m
file.height = 100
In this case, the image is scaled to a height of 100 pixels, the width is determined automatically by the aspect ratio.
If the letter c is used, the image is fitted into a frame of the specified size. The proportions are retained and the image is centered. With the parameters
file.width = 120c
file.height = 120
a square image can be created from the rectangular one. Optionally, a shift in the range -100 to +100 (%) can be specified, allowing the frame to be positioned horizontally (for width) or vertically (height) above the original image:
This page contains automatically translated content.
Updated: 09.04.2025







