Add Image Size – doing width but not height or Crop
-
I wanted to register a new image size that i can call through into my widgets to display blog featured images at 90×90.
Ok so i have added to the functions.php file:
add_image_size( 'tinythumbnail', 90, 90, true );
and call it through using:
if ( has_post_thumbnail() ) { the_post_thumbnail( 'tinythumbnail' ); }
But the image i upload is like 660 x 200 and when the tinythumbnail custom image size is called through it displays at a scaled version (90 x 27)of the image not at 90×90 as specified and also, not cropped.
I know people have said this can be an issue due to images needing to be uploaded again, but i have tried it with brand new images and still have the same issue, it is scaling the image to the width and ignoring my height requirement, ANY IDEAS?
Thanks in advance
- The topic ‘Add Image Size – doing width but not height or Crop’ is closed to new replies.