[wp-trac] [WordPress Trac] #23436: Media Gallery - Cropping Image and then Cropping a thumbnail from that crop doesn't work.
WordPress Trac
noreply at wordpress.org
Thu Nov 17 21:38:32 UTC 2022
#23436: Media Gallery - Cropping Image and then Cropping a thumbnail from that crop
doesn't work.
-------------------------------------------------+-------------------------
Reporter: gr33nman | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Media | Version: 3.5
Severity: normal | Resolution:
Keywords: needs-patch reporter-feedback close | Focuses:
2nd-opinion media-edit |
-------------------------------------------------+-------------------------
Comment (by antonvlasenko):
I've worked on fixing a similar issue:
https://core.trac.wordpress.org/ticket/55070.
I agree with @markoheijnen here.
Most likely, the wrong version of the image is being displayed (but I
haven't checked it myself).
And the whole flow of editing images needs to be revisited.
But I can hardly imagine how to do it without breaking BC.
== Reproduction Report
This report validates that the issue can be reproduced.
=== Environment
* OS: macOS 12.6
* Web Server: Apache
* PHP: 8.1
* WordPress: 6.2-alpha-54642-src
* Browser: Safari 16.0
* Theme: Twenty Twenty-Two
* Active Plugins:
* None
=== Steps to Reproduce
1. Upload this image to the Media Gallery:
https://upload.wikimedia.org/wikipedia/commons/thumb/a/a8/Cheese_platter.jpg
/800px-Cheese_platter.jpg
2. Click on the image.
3. Click on the "Edit Image" button below the image.
4. Crop the image (using the "Crop" button above the image).
5. A cropped image should be 500 x 100 pixels in size.
6. Save the cropped image (click on the "Save" button).
7. Crop the image (using the "Crop" button above the image).
8. A cropped image should be 150 x 100 pixels in size.
9. Save the cropped image (click on the "Save" button).
=== Actual Results
- The image on the Media Library page (`/upload.php`) doesn't match the
image that was cropped (see steps 8, 9).
So this bug can still be reproduced.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23436#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list