[wp-trac] [WordPress Trac] #59764: Imagick squashes image for cropped size
WordPress Trac
noreply at wordpress.org
Fri Apr 26 06:56:52 UTC 2024
#59764: Imagick squashes image for cropped size
--------------------------+---------------------
Reporter: Iulia Cazan | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.6
Component: Media | Version: 6.3.3
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Comment (by Iulia Cazan):
Hi @antpb!
Thanks for looking into this, it's been quite a while, and I had to redo
my steps to replicate. The issue is still there in 6.5.2, but my initial
comment is inaccurate, it's GD that produces the squashed image, Imagick
does it well.
Please see my recording. For troubleshooting purposes, I implemented a
small plugin that switches the editor class and also removes some image
sizes, just to see generated the demo subsizes with the exact width and
height.
I traced the issue down to the hook `image_resize_dimensions`, this seems
to do different things in GD vs. Imagick.
This is what I used in my example:
crop_landscape crop of 1700x930
crop_portrait crop of 930x1700
Source image and recording https://imgur.com/a/Fnui2CV
Let me know if I can assist with the troubleshooting.
Have a nice day,
Iulia
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59764#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list