Opened 3 weeks ago
Last modified 9 days ago
#62453 new defect (bug)
Cropping of images in WP 6.7 is broken
Reported by: | axelkratel | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.7.1 |
Component: | Media | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
When cropping an image, the original crop isn't retained. The selection moves all the way to the left of the image no matter what the user tried to select. It jumps by itself to 0,0 start point when saving. That seems to be because the starting coordinates get filled with 0,0 even though the user doesn't enter anything and even if the user manually moves the cropping rectangle, the starting coordinates don't get updated. This didn't work that way in 6.6.2. Manually changing the starting coordinates leads to all kinds of strange unpredictable behavior.
The cropping is essentially unusable. I can add quicktime screen capture of problem. I did check logs for errors and console for errors, found no errors.
Independent of plugins or theme.
Error in Chrome dev tools says incorrect use for label.
Attachments (2)
Change History (8)
#2
@
3 weeks ago
Reproduction Report
Description
This report validates whether the issue can be reproduced.
Environment
- WordPress: 6.7
- PHP: 8.1.29
- Server: nginx/1.16.0
- Database: mysqli (Server: 8.0.16 / Client: mysqlnd 8.1.29)
- Browser: Chrome 131.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty-Five 1.0
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
Actual Results
- I can not reproduce the bug.
Can you include any more information? What is the image format? Are there any JavaScript errors?
I did not understand what this means: "even though the user doesn't enter anything "
I don't see any input fields to manually change the values. What did you try to update? I mean, during testing, are you changing the CSS transform in the browser console? I am just trying to understand.
#6
@
9 days ago
Cropping definitely seems quite glitchy/broken in version 6.7.
Since several people have had trouble reproducing this, here are more detailed steps:
- In the admin section, click "Media".
- Click on an image. (Upload an image first if you don't have one.)
- Click the "Edit Image" button.
- Click the "Crop" button.
- Click and drag on the drag handle in the top left corner of the image, dragging the mouse somewhere in the middle of the image.
- Observe that the fields labeled "Selection" are automatically updated when dragging; however, the fields labeled "Starting Coordinates" are not automatically updated, but remain at zero.
If you try the above steps in WordPress 6.6.2, the "Starting Coordinates" are automatically updated to show the position of the top left corner of the selection.
I'm not sure if that's the only thing wrong with the cropping functionality in 6.7, but it's certainly a regression compared to 6.6.
Hi Axelkratel,
Could you pls share more details along with a screenshot? I couldn't replicate the issue. Also, kindly share the Chrome version you are using.