Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Featured Image block isn't consistently showing the "Resolution" option under "Dimensions" #50271

Open
ChrisBegley opened this issue May 3, 2023 · 2 comments · May be fixed by #64950
Open
Labels
[Block] Post Featured Image Affects the Post Featured Image Block [Type] Enhancement A suggestion for improvement.

Comments

@ChrisBegley
Copy link

ChrisBegley commented May 3, 2023

Description

I love the "Resolution" option under "Dimensions" on the Post Featured Image block. However, "Resolution" isn't show up consistently on every Post Featured Image block I'm using. I can't get it to show up on the "Single" template, for example. I'm trying to load a more optimized image size, since it defaults to "Full".

On other templates, the Post Featured Image block is letting me select the "Resolution" option. I'm not sure what's causing the inconsistency.

I'm using a fresh install of WordPress 6.2, Gutenberg 15.6.2, and the Twenty Twenty-Three theme.

Step-by-step reproduction instructions

  1. Go to the Post Featured Image block
  2. Go to the Styles tab
  3. Click the 3 dots to add "Resolution" option under "Dimensions"
  4. That option isn't always there.

Screenshots, screen recording, code snippet

No response

Environment info

No response

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

@carolinan
Copy link
Contributor

The single template does not have access to the actual featured image from the post, only the placeholder image, that is probably why. It doesn't know what size the actual image is available in.

@carolinan carolinan added the [Block] Post Featured Image Affects the Post Featured Image Block label May 3, 2023
@jordesign
Copy link
Contributor

In my testing (6.3 RC1) I found I could activate that control:

  • On individual pages and posts but only if a featured image was assigned
  • Archive/Index Templates but only if one of the posts listed has an image assigned
  • Other templates with a Query loop but only if one of the posts listed has an image assigned

I was NOT able to activate that control in the Single or Page templates.

As @carolinan mentioned - it seems this is due to the fact that in those template states, there is no example image for it to reference, so no Resolution control is available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Featured Image Affects the Post Featured Image Block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants