0

In my media settings I have:

Thumbnail size  131 x 87
Crop thumbnail to exact dimensions: yes
Medium size     260 x 1000
Large size          560 x 800

But the_post_thumbnail('medium') outputs an image of size 180 x 194px (originally 580 x 630). What have I done wrong?

If I look at get_intermediate_image_sizes() I see:

Array
(
    [0] => thumbnail
    [1] => medium
    [2] => large
    [3] => kc-large
    [4] => slider
    [5] => post-thumbnail
)

kc-large and slider are both set in my theme, I think post-thumbnail is a WordPress thing. If I use the Force Regenerate Thumbnails plugin I see that it generates my medium sized images correctly.

Any help figuring this out would be greatly appreciated!

Toby

3
  • images are resized when they're uploaded, if you uploaded images before you changed the size, those old images will not be automatically resized.
    – Milo
    Commented Mar 31, 2014 at 20:40
  • As Milo says, if this is the case for you this plugin worked/works for me.
    – JMB
    Commented Mar 31, 2014 at 21:01
  • Thanks for your responses - I'm actually using an image resizing plugin, as mentioned. I think, however, it was user error this time - when I ran the plugin on all images I got the expected result. I don't know what I was doing wrong before, but it must have been something daft. Commented Apr 1, 2014 at 5:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.