Displays wrong image sizes/proportions
-
Hi,
First of all thanks for your plugin. It is great!
Specially the support for background images.I have been using it right out of the box and it works great, but now I tried to customize my image sizes and I got some issues.
Here is a bit of code:
functions.php
// Hero image sizes add_image_size('full-thumb', 1680, 945, false); add_image_size('large-thumb', 1400, 788, false); add_image_size('hero-medium-thumb', 1050, 591, false); add_image_size('hero-small-thumb', 700, 295, false); // Standard sizes add_image_size('normal-thumb', 1200, 858, true); add_image_size('medium-thumb', 840, 600, true); add_image_size('small-thumb', 700, 500, true); add_image_size('tiny-thumb', 300, 214, true);
I would like it to show the 700×500 version:
if ( has_post_thumbnail() ) { the_post_thumbnail('small-thumb'); }
But it displays images with different sizes
700×295 or 700×394I’ve also unset the default image sizes because I don’t need them.
And made two wordpress installations to compare them. The first works, and the second(fresh install) doesn’t.
Cleared cache and same code.So my question is:
Does it matter what proportions the uploaded images have? (for now i’ve uploaded 2000×1200).
Or is there something wrong in my code?Thanks again!
- The topic ‘Displays wrong image sizes/proportions’ is closed to new replies.