-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first timeNeeds DevReady for, and needs developer effortsReady for, and needs developer efforts[Feature] Document SettingsDocument settings experienceDocument settings experience[Package] Editor/packages/editor/packages/editor[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Describe the bug
By default gutenberg tries to load the featured image with the image size post-thumbnail
in the editor sidebar:
const mediaSize = applyFilters( 'editor.PostFeaturedImage.imageSize', 'post-thumbnail', media.id, currentPostId ); |
This image size does not exist by default. The correct image size would be thumbnail
.
See the default image sizes in the Codex: https://codex.wordpress.org/Post_Thumbnails#Thumbnail_Sizes
Because the specified image size does not exist, the full
size is used as a fallback.
This causes a performance issue, because a potentially far too large image is loaded.
To reproduce
Steps to reproduce the behavior:
- Create a Post
- Add a Featured image in a large size e.g. 2000px wide
- Right-click on the image and choose "open image in new window"
- You can see the image in full size.
Expected behavior
The Featured image should be loaded in a smaller version/thumnail site within the editor sidebar.
Desktop:
- OS: OS X 10.13.6
- Browser Chrome
- Version 74.0.3729.169
Additional context
- Gutenberg Version 5.8.0-rc.1
Metadata
Metadata
Assignees
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first timeNeeds DevReady for, and needs developer effortsReady for, and needs developer efforts[Feature] Document SettingsDocument settings experienceDocument settings experience[Package] Editor/packages/editor/packages/editor[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended