[wp-trac] [WordPress Trac] #55070: Image Editing Cropping is not working properly
WordPress Trac
noreply at wordpress.org
Wed Feb 16 11:35:26 UTC 2022
#55070: Image Editing Cropping is not working properly
--------------------------+---------------------
Reporter: andy786 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.0
Component: Media | Version: 5.9
Severity: critical | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+---------------------
Comment (by sanketchodavadiya):
@antpb I have debugged this issue and below is my finding.
This issue happens if we crop below 1024px x 1024px(Large image size).
So, below large images are being regenerated with the crop but bigger than
that images are untouched.
In core file **media-template.php**
[https://github.com/WordPress/WordPress/blob/ca76abd7e838b5760bc010d4ad3a38e693696667
/wp-includes/media-template.php#L360-L361]
Large size image is being shown when image is open in Attachment details
popup that never cropped.
Also, while cropping when `make_subsize(...)` > `_resize(...) or
resize(...)` function run it throws WP_Error `error_getting_dimensions`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55070#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list