Skip to content

Gallery Image resolution selector displays as Thumbnail even if the image actual size is Full Size #68969

@Kallyan01

Description

@Kallyan01

Description

Whenever I try to add a gallery image in the Gutenberg editor, the selected image appears in Full Size, but in the resolution selector, it shows as Thumbnail Size. The expected behaviour is that the selector should reflect the chosen Full Size image.

Image

Expected Behaviour:
The image preview in the media selector should show the actual image size (Full Size).
Actual Behaviour:
The media selector displays the image in Thumbnail Size, even when the actual inserted image is in Full Size (according to the image resolutions ).

Step-by-step reproduction instructions

  • Open any POST or PAGE.
  • Add a Gallery block.
  • Choose an image through upload or media library .
  • When an image is inserted into the editor, observe that the selected image appears in Full Size in the gallery, but in the media selector, it incorrectly displays as Thumbnail Size.
  • Check image resolution by page inspect and notice the difference .

Screenshots, screen recording, code snippet

Image
Screen.Recording.2025-01-30.at.8.53.27.PM.mov

Environment info

WordPress Version: 6.8
Gutenberg Version: 20.2.0-rc.1
Theme: Twenty Twenty-Four
Browser: Chrome
OS: Mac

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] GalleryAffects the Gallery Block - used to display groups of images[Block] ImageAffects the Image Block[Status] Needs More InfoFollow-up required in order to be actionable.[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions