Issue Bug Closed

#82228Image-related ViewHelpers don't respect different ratios of cropped variants

Andreas Kienast 08/28/17, 11:27 updated 09/29/26, 21:08

Description

Scenario

<f:media> is used to render a image with crop variants having different ratios.</f:media>

Example

Original image: 16:9 ratio
Default variant: 1:1 ratio
Mobile variant: 4:3 ratio

Issue

Rendering the mobile variant scales the image to a ratio of the original image (16:9 in this case).

Reviews 1

History 25

  1. Gerrit Code Review pushed patch set 1 for master to change 53819 status In Progress Under Review <span data-processor="relativetime" data-value="2017-08-28T11:35:00+00:00" > 08/28/17, 11:35 </span>

  2. Andreas Kienast changed status Under Review New removed the assignee target version <span data-processor="relativetime" data-value="2017-11-23T11:15:45+00:00" > 11/23/17, 11:15 </span>

  3. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-09-29T21:08:37+00:00" > 09/29/26, 21:08 </span>

    Cannot be reproduced with current versions: the dimensions of processed images are now calculated from the crop area of the selected crop variant, e.g. a 4:3 variant of a 16:9 image rendered with width=“400” results in 400×300.

    Only if both width and height are given explicitly (without m or c), the image is scaled to exactly these dimensions, which is intended. Closing, please reopen if it still happens.