#82228Image-related ViewHelpers don't respect different ratios of cropped variants
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
-
Gerrit Code Review pushed patch set 1 for master to change 53819 status
In ProgressUnder Review <span data-processor="relativetime" data-value="2017-08-28T11:35:00+00:00" > 08/28/17, 11:35 </span> -
Gerrit Code Review pushed patch set 2 for master to change 53819 <span data-processor="relativetime" data-value="2017-08-28T11:35:33+00:00" > 08/28/17, 11:35 </span>
-
Gerrit Code Review pushed patch set 3 for master to change 53819 <span data-processor="relativetime" data-value="2017-08-29T09:06:04+00:00" > 08/29/17, 09:06 </span>
-
Andreas Kienast changed status
Under ReviewNew removed the assignee target version <span data-processor="relativetime" data-value="2017-11-23T11:15:45+00:00" > 11/23/17, 11:15 </span> -
Georg Ringer commented and changed status
NewClosed <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.