• Hello,

    I hv run across an issue with add_image_size. I have specified an image size of 400px by 300px but when the image is generated it creates an image size of 400px by 240px

    I am not sure why this is happening. As the codex says

    “This means that WordPress will create a copy of the Featured Image (formerly known as post thumbnail) with the specified dimensions when you upload a new image.”

Viewing 1 replies (of 1 total)
  • That’s because you didn’t turn on crop mode. What I think you did use is this: add_image_size( 'thumbnail', 400, 240 ); What you should use is: add_image_size( 'thumbnail', 400, 240, true ); WordPress doesn’t streches a picture, that’s why you have to help him. There is another trick though that you might find useful: add_image_size( 'thumbnail', 400, 9999); This will give you unlimited height of a picture, being limited only in width.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom image size does not create specified size of image’ is closed to new replies.