• Leon007

    (@leon007)


    Hi,

    Thank you for your excellent plugin!

    But I’ve got a problem when trying to display feature images of different sizes (height-width ratio) in different posts. I cannot solve the problem using CSS because some images look stretched while others cropped…

    It would be great to define individually height (or max-height) parameter for each post’s feature image (say, in a special input field when setting external image’s URL).

    It will help greatly in case the sizes are known beforehand (like in my case).

    Thank you in advance.

    https://wordpress.org/plugins/external-featured-image/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Aguilera

    (@davilera)

    Hi!

    Thanks for your nice words. Can you please share a link where I can see the problem you mention?

    In principle, featured images should not be stretched; they should all be cropped. That’s because we set an external featured image as the background of an HTML div (it’s the only way in which we can scale and crop the image in your visitors’ browsers).

    Also, what theme are you using?

    Thanks!

    Thread Starter Leon007

    (@leon007)

    Hello David,

    Sorry for delay with my response. You’re right, I wasn’t correct saying “stretched” – they are cropped. Just take a look at my test site. The free Pinbin theme was used here.

    This code was added to style.css file:
    .nelioefi {
    max-height: 450px;
    max-width: 750px; }

    I cannot find style combinations that would make it possible to display all the images (with different width-height ratio) without unwanted cropping. It seems that in case we can specify width, height parameters for each image the problem will be solved.

    What do you think?
    Thank you.

    Plugin Author David Aguilera

    (@davilera)

    You’re probably right, Leon! I’ll write this request down and try to implement it in an upcoming release of our plugin. In the meantime, however, I’m afraid you’ll have to “accept” the cropping ;-P

    Thread Starter Leon007

    (@leon007)

    Thank you, David! Looking forward to this new release. With this feature implemented your plugin will be almost perfect! Good luck! Leon.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Predefined image sizes’ is closed to new replies.