Creating image styles with no aspect ratio - only "widths"

Created on 9 July 2025, 3 days ago

Problem/Motivation

In some cases it makes sense to have no fixed aspect ratio for images. For example if you want to embed an image inside CKEditor.

Proposed resolution

Add a syntax to the aspect ratio configuration and handle the image generation.

Feature request
Status

Active

Version

2.0

Component

Code

Created by

🇩🇪Germany Christian.wiedemann

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

Comments & Activities

  • Issue created by @Christian.wiedemann
  • 🇩🇪Germany D34dMan Hamburg

    In some cases it makes sense to have no fixed aspect ratio for images. For example if you want to embed an image inside CKEditor.

    I am not convinced that image inside a CKEditor is an exception. Since the logic can also be applied to a teaser image which should behave similarly. (If the design calls for variable height image for teasers, so be it!).

    Am not against a request to "preserve" original aspect ratio. However, this should be a cautious choice from Site-builder. And your proposal to add this to rift should achieve that.

    We need to do a discovery on what needs to be done to make this happen.

Production build 0.71.5 2024