Make WordPress Core

Opened 8 weeks ago

Last modified 3 weeks ago

#65960 new defect (bug)

Image Editor don't update thumbnails

Reported by: martinplr Owned by:
Priority: normal Milestone: Awaiting Review
Component: Media Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Hello,

Looks like Image Editor only edits main image without thumbnails, can be easy reproduce in ​https://playground.wordpress.net/

  1. Create a post with an image block (chose bigger image so thumbnail will be used)
  2. Go to Media -> Your Image -> Edit Image -> Flip it -> Save changes
  3. Go back to created post and check if if image is updated (spoiler it is not)

Thanks!

Attachments (1)

Fixed.png​ (261.1 KB ) - added by aizen30 7 weeks ago.
Image

Download all attachments as: .zip

Change History (6)

#1 @adamsilverstein
8 weeks ago

Hi @martinplr - thanks for the bug report.

A few questions:

  • Does the same happen for cropping?
  • Do you know if this is a new bug in 7.1 or something that pre-existed? I believe Playground will let you test older versions.
  • If you make the same edit in the Media Library, does it work as you expected (including the thumbnails)?

Also: what browser are you using? I'm asking to see if client side media is enabled which might change the upload path.

cc: @andrewserong

#2 @martinplr
7 weeks ago

Thanks for the follow-up

  • Yes, the same issue also occurs when cropping.
  • I tested this on WordPress 6.9 and 6.3 as well, and the issue is still present there, so it doesn’t appear to be a recent regression in 7.1.
  • I’m performing the edits through the Media Library.
  • I’m using Microsoft Edge 151.

Thanks

@aizen30
7 weeks ago

Image

#3 @aizen30
7 weeks ago

Hi @martinplr - thanks for the bug report.

Me and @melsants I think the solved the issue refer to the attached image above you just have to click on gallery so that your flipped image can be seen in the thumbnail.

That's all have a good day!

#4 @martinplr
7 weeks ago

Yeah that way it works, so it's only broken when using via Media Library

Thanks!

#5 @raulsalvat
3 weeks ago

  • Keywords has-patch added

A fix is available for review in Gutenberg PR #83541:

​https://github.com/WordPress/gutenberg/pull/83541

The PR includes regression coverage for the stale intermediate image URL case, numeric backup history keys, unrelated image URLs, and prefix-colliding backup keys.

Local validation completed successfully, including PHP syntax checks, PHPCS, a fresh Gutenberg production build, generated renderer PHP syntax, and the targeted PHPUnit suite (11 tests, 24 assertions).

Note: See TracTickets for help on using tickets.