• Resolved ulim

    (@ulim)


    When I write a post, then it appears that the featured image is always scaled to a width of 750 pixels (in the desktop view). This works ok for landscape formats, but when I have portrait dimensions (say 300 x 600 pixels), the image gets much too high. What’s more, even if the image has only 600 pixels in height, it is then scaled up until the width gets to 750 pixels. This leads to a very pixelated look, of course.

    Perhaps I have overlooked some option I need to activate when I have portrait dimensioned featured images?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author creativethemeshq

    (@creativethemeshq)

    Hey @ulim,
    Actually all you have to do is to make sure you add a really hight quality image if you don’t want it to look pixelated in portrait mode.

    The portrait mode will automatically try to adjust the image in order to give it the right ratio and dimension and if you have a low quality image – it will make it bigger but will look pixelated.

    Hope this helps.

    Thread Starter ulim

    (@ulim)

    Adding a smaller image was just my desperate attempt to get a smaller image ??

    The problem is that portrait images are stretched to a width of 750 pixels, which means that their height is going well above 1400 pixels and you can only see half of the image even on the largest of screens.

    So my question is not about image quality, it is how can I have portrait dimensioned images for my posts at all?

    Thread Starter ulim

    (@ulim)

    What I mean is that they should be the same size as landscape images. A landscape image of 750×300 pixels is displayed just like that. But a portrait image of 300×750 pixels is blown up to 750×1875 pixels! It is four times the size of the landscape image.

    Thread Starter ulim

    (@ulim)

    For the benefit of others, I believe that it is not possible to set the aspect ratio of a single featured image.

    To be sure, it *is* possible to set a certain aspect ratio for *all* featured images within the Blocksy customizer. But if you have a mixture of portrait and landscape images, you’re out of luck.

    The reasoning seems to be that the “featured image” isn’t necessarily meant to be shown as part of post’s content. Some themes (like Blocksy) will allow that, but the normal way to use featured images is simply as “post thumbnails” for overview pages. On those pages WordPress may generate a grid or a list of posts and so all thumbnails need to have a similar aspect ratio, otherwise the overview page won’t look good.

    Therefore, what I will do is define for myself a standard size and aspect ratio for my featured images according to how they would look good on my overview pages. But I will not include the featured images automatically into the post content. Rather, I’ll put them in manually via the Gutenberg editor. It might seem a bit wasteful to have an image twice, once as a featured image and once within the post content, but that will allow me to resize and reposition the image as desired. For example, I could let the text flow around a portrait image, while letting a landscape image take full width.

    • This reply was modified 3 years, 10 months ago by ulim.
    • This reply was modified 3 years, 10 months ago by ulim.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Featured Image in Posts (Portrait vs. Landscape)’ is closed to new replies.