Issue Bug Closed

#106329ImageProcessingInstructions misses an integer casting for one scenario

Garvin Hicking 03/07/25, 08:03 updated 08/12/25, 14:36

Description

$options['minHeight'] is missing an integer casting in this evaluation:

        if (!empty($options['minHeight'])) {
            if ($height < $options['minHeight'] || ($height === 0 && $cropArea->getHeight() < $options['minHeight'])) {
                $height = $options['minHeight'];
                $width = max(1, (int)round($cropArea->getWidth() * ($height / $cropArea->getHeight())));
            }
        }

Reviews 2

History 35

  1. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-03-07T08:25:08+00:00" > 03/07/25, 08:25 </span>

    Applied in changeset commit:965b5e098fa029fcdd7efa1d1e83bc22e3d36ebe.