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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | wrong_image_width_and-2634700-2.patch.patch | 494 bytes | fabianvdbor |
Comments
Comment #2
fabianvdbor commentedAttached 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.
Comment #3
fabianvdbor commented