Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Square Pixels Scale

8 sites Security covered Drupal 8–11
View on drupal.org

This module provides an image effect that scales images based on their total pixel count while maintaining the original aspect ratio. It's useful for displaying images of different aspect ratios at a similar apparent size.

Introduction

Square Pixels Scale adds an image effect (for use in image styles) that allows scaling based on the total number of pixels in an image (as calculated by multiplying the width by 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.

Requirements

This module has no special requirements.

Installation

Install as you would normally install a contributed Drupal module.
See: https://www.drupal.org/node/895232 for further information.

Configuration

The following configuration options are available once a square pixels scale
image effect has been added to an image style:

  • 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 an image larger than its
    original size.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-1.3 Stable 8–11 Jan 30, 2025