Square Pixels Scale

Categories

Component ID

1739916

Component name

Square Pixels Scale

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module adds an image effect (for use in image styles) that allows scaling based on the total number of square pixels in an image (as calculated by multiplying the width and the height). The original aspect ratio of the image is maintained.

This module is useful in cases where images of varying aspect ratios (such as logos) will be displayed together and should have apparent sizes more similar than the basic scale effect can provide.

Settings

  • Total square pixels: This target number will be approximated by multiplying the width and height of the scaled image. The actual result will most likely not be the exact number, but slightly below or above.
  • Maximum width: A maximum width to which the image should be scaled (optional).
  • Maximum height: A maximum height to which the image should be scaled (optional).
  • Allow upscaling: Let square pixels scale make images larger than their original size.