For some reason Wordpress is cropping some of my thumbnails proportionately rather than to specific dimensions for some images, and cropping them to specific dimensions for others.
I want it to crop all my thumbnails to 728 x 410 pixels, but some of them are taller than 410 pixels.
Here is what I have in my functions.php:
add_image_size('main-thumbnail', 728, 410, true);
Here is what I have in my content.php:
<div class="thumbnail"><a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('main-thumbnail'); ?></a></div>
This works for some images but not for others, and I don't know what is causing this.
I have also regenerated my thumbnails using the Regenerate Thumbnails plugin but nothing changed.
What is the reason for this?