Add_image_size not cropping

I want to make a crop on the images of my blog page that have more than 443px adjust it to 645×443 size, exactly.

I used this code:

add_theme_support ('post-thumbnails');
add_image_size ('blog-page', 645, 445, true);

However, the image is resized instead of making the crop.

Exemples:

Original image: http://img843.imageshack.us/img843/6444/56004879.jpg

How is: http://imageshack.us/scaled/landing/809/53926495.png

How i want: http://imageshack.us/scaled/landing/823/32122755.png

How do I do this?

2 Answers
2

From this comment:

Sry, i forgot it, but i want size of 645×445, exactly, and that image dont have it. The width of it is 588px. Look: img201.imageshack.us/img201/4728/40405258.png WordPress need make a zoom on it.

WordPress does not zoom. It only crops. If you want an image to have a custom intermediate size, then you must upload an image with dimensions greater than or equal to the dimensions specified in your add_image_size() call.

Also: if you have uploaded images prior to adding your add_image_size() call, then you will need to regenerate your intermediate image files in order for WordPress to create images using your custom size.

Leave a Comment