I created an image style with Scale and Smart Crop and the option 'Allow Upscaling' as disabled.

The scaled and cropped image get the wrong width and height. This image get the given width and height from the scale and crop options instead the actual size of the image.

Comments

fabianvdbor created an issue. See original summary.

fabianvdbor’s picture

StatusFileSize
new494 bytes

Attached an patch that fix this issue.

The correct size of the image is already set in the variable $image_data['info']. It is unnecessary to override this variables.

fabianvdbor’s picture

Status: Active » Needs review