Provide derivative image dimensions (width/height) alongside URL

Created on 22 July 2019, almost 6 years ago
Updated 20 July 2023, almost 2 years ago

We have a recurring need to now the actual size of the derivative before loading it. This module currently only provides the derivative image URL in its output.
I suggest that we add a width and a height properties to the meta structure of each derivative, in the same way it's done in the meta of the Image field data.

✨ Feature request
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada garphy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States tjh

    With this change effectively reverted due to the "bug" described in #3252023, what would be a more correct way to include the values of the derived image dimensions?

Production build 0.71.5 2024