close
Skip to content

Low Resolution Images in Large Featured Image Blocks #49561

@tomjn

Description

@tomjn

Description

The featured image block uses a srcset and sets the height and width of the img tag to small default resolutions unless you explicitly enter them in the sidebar.

However on a theme that uses dynamic CSS widths this means that the thumbnail size is used for all featured images, even those blown up to cover the screen.

In the past the sizeSlug attribute would fix this, but it has no UI now and is erased on save.

Step-by-step reproduction instructions

  1. Add a featured image block
  2. Put it in a place that has a very large size
  3. view on the frontend and observe that while the block is now large, the image resolution is that of a tiny thumbnail scaled up and blurred

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 6.2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Post Featured ImageAffects the Post Featured Image Block[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions