Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#55323 new defect (bug)

When an image is edited the URL of the image is not updated

Reported by: mitogh's profile mitogh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.9.1
Component: Media Keywords:
Focuses: ui, administration Cc:

Description

When an image is edited from the image editor, after an edit has been applied, the URL of the image is not updated due it always references back to the original image instead of referencing the image to the updated image (when the edit has been applied to all images sizes).

Steps to replicate the problem.

  1. Upload an image into the media library
  2. After the image is uploaded into the media library click on Edit image
  3. Apply an edit to the image, either rotate, flip or crop,
  4. Make sure that the option is applied to all images sizes.
  5. Click on Save
  6. Observe how the URL of the image (see attached image), by clicking on Copy URL to the clipboard
  7. Open the copied URL into a new tab the copied URL still references to the original image, and not the edited image instead.

Attachments (1)

2022-03-05_19-24.png (579.4 KB) - added by mitogh 3 years ago.

Download all attachments as: .zip

Change History (3)

#1 @adamsilverstein
3 years ago

Should the URL show the edited image url, or should the header for the field be updated to indicate it is the "original" image (if that is what it is)? So instead of "File URL" maybe "Original file URL"?

#2 @mitogh
3 years ago

Should the URL show the edited image url, or should the header for the field be updated to indicate it is the "original" image (if that is what it is)? So instead of "File URL" maybe "Original file URL"?

The URL should use the rotated version as the URL as when you reload the page after the edit has been completed the URL now uses the rotated version.

Same for the File URL when the page is refreshed the File URL now references the rotated version, so in this case both fields should be updated to reflect the new values for:

  • File URL
  • Filename
  • File size
  • Dimensions

From my perspective, the expected result is the same as if you refresh the page and new values are populated in the areas described above.

Note: See TracTickets for help on using tickets.