Title: Predefined image sizes
Last modified: August 24, 2016

---

# Predefined image sizes

 *  [Leon007](https://wordpress.org/support/users/leon007/)
 * (@leon007)
 * [11 years ago](https://wordpress.org/support/topic/predefined-image-sizes/)
 * 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/](https://wordpress.org/plugins/external-featured-image/)

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

 *  Plugin Author [David Aguilera](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [11 years ago](https://wordpress.org/support/topic/predefined-image-sizes/#post-6050376)
 * 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](https://wordpress.org/support/users/leon007/)
 * (@leon007)
 * [11 years ago](https://wordpress.org/support/topic/predefined-image-sizes/#post-6050456)
 * 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](http://wptest.pixub.com/).
   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](https://wordpress.org/support/users/davilera/)
 * (@davilera)
 * [11 years ago](https://wordpress.org/support/topic/predefined-image-sizes/#post-6050465)
 * 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](https://wordpress.org/support/users/leon007/)
 * (@leon007)
 * [11 years ago](https://wordpress.org/support/topic/predefined-image-sizes/#post-6050467)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/external-featured-image_947a5f.svg)
 * [Nelio External Featured Image (discontinued) - Available in Nelio Content](https://wordpress.org/plugins/external-featured-image/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/external-featured-image/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/external-featured-image/)
 * [Active Topics](https://wordpress.org/support/plugin/external-featured-image/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/external-featured-image/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/external-featured-image/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Leon007](https://wordpress.org/support/users/leon007/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/predefined-image-sizes/#post-6050467)
 * Status: not resolved