Make WordPress Core

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's profile 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)

6.7.1.png (387.9 KB) - added by siliconforks 9 days ago.
Cropping in WordPress 6.7.1. Note that the "Starting Coordinates" remain at 0.
6.6.2.png (388.4 KB) - added by siliconforks 9 days ago.
Cropping in WordPress 6.6.2. Note that the "Starting Coordinates" are automatically updated.

Download all attachments as: .zip

Change History (8)

#1 @umeshsinghin
3 weeks ago

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.

#2 @poena
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

  1. 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.

#3 @priyankkpatel
3 weeks ago

I, too tested it with WordPress 6.7 and it is working well.

#4 @desrosj
3 weeks ago

  • Component changed from General to Media
  • Keywords reporter-feedback added

#5 @holafreak
9 days ago

  • Version changed from 6.7 to 6.7.1

I got the exact same issue on 6.7.1.

#6 @siliconforks
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:

  1. In the admin section, click "Media".
  2. Click on an image. (Upload an image first if you don't have one.)
  3. Click the "Edit Image" button.
  4. Click the "Crop" button.
  5. 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.
  6. 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.

@siliconforks
9 days ago

Cropping in WordPress 6.7.1. Note that the "Starting Coordinates" remain at 0.

@siliconforks
9 days ago

Cropping in WordPress 6.6.2. Note that the "Starting Coordinates" are automatically updated.

Note: See TracTickets for help on using tickets.