Size
This rule checks that an image has an exact specified dimension.
Parameter table
param | unit | required | description |
---|---|---|---|
width | px | yes | The width of the image in pixels (width ). |
height | px | yes | The height of the image in pixels (height ). |
Correction
In case the image dimensions do not comply with the specified values, a single correction is performed by resizing the image. The algorithm used for resizing is "nearestNeighbor."
How to setup
This rule evaluates whether an image's dimensions adhere to specified size constraints. Key parameters include:
width
: The exact width of the image in pixels.height
: The exact height of the image in pixels.
All arguments are required.
Creator tips
- You can investigate the image size by simply checking its properties.
- You can resize images with simple image editing tools like paint.
Examples
value | valid | height | width | description |
---|---|---|---|---|
✅ | 362 | 362 | The image size should be 362x362. | |
❌ | 256 | 128 | The image size should be 128x256. |