-
Notifications
You must be signed in to change notification settings - Fork 165
post_thumbnail size assumes large images #208
Comments
The one I had on my test site wasn't that small, but still it looked bad. And you can't enforce anything for legacy content. You could put a different class on it if it is below a threshold. |
Should be in RC1 milestone. |
I did some exploration around this today, and did not arrive on a great solution to this issue. Here are some examples, each using one large image ( Option 1: Current✅ Great: Large image looks ideal. Option 2: Contain✖️ Large image has borders. Appears broken. Option 3: Do Nothing🆗 Large image is very zoomed in, missing details. Option 4: RepeatThis method is not compatible with #450. 🆗 Large image is very zoomed in, missing details. We could also technically target smaller images and give them a different treatment than larger images, but I worry that'd be confusing for users. These results would vary depending on the types of images used and their subjects. That said, our current approach results in reasonable (or better) behavior when using the greatest variety of image sizes, so I'd prefer to continue with that at this point. I'm going to leave this issue out of RC1 for now, but if a PR arises with a good solution that works across all image sizes we'll happily fast-track it. |
I think there is a bias here toward large images. Your assessment of the current implementation with the large image "Image looks ideal" is telling, because to me, that looks as bad as the rest. I think they all take up too much of the page, forcing the user to scroll to see any content. Here is an example of a site that would not work well with this design, because the images are tall and part of the content: http://www.moriareviews.com/ Obscuring the featured image with text and color, and not showing all of it because it's in the header defeats the purpose of featuring an image. |
Just wanted to note that I did explore a separate option to solve this problem by adding a toggle for the full screen featured images: However, that change relies on implementing a new feature. Now that we're in RC1, we aren't going to be undertaking any design tweaks of that size. That solution is archived here in case anyone wants to work with it in the future, but @allancole and I won't be incorporating it into the initial release. The theme was designed for featured images to appear full-screen, like they are currently. So ruling the theme toggle out, we're already using the next best solution we have at this point (based on the explorations shared above at least), so I'm going to go ahead and close this issue for now. If a better solution arrives between now and release, we'll consider it, but the current behavior is working as designed. |
When viewing a post with a small featured image, the CSS causes the browser to upscale the image and it looks jagged and bad. It also takes up way too much space (it's a vertical image).
I think that the CSS should never use width:100% on images, because the CSS can't know what size they are.
The text was updated successfully, but these errors were encountered: