I've set up a bunch of additional image sizes in my functions.php theme file, with the crop parameter set to true. However, the images are resized but not cropped.

    if (function_exists('add_image_size')) {

}


The GD library is installed, so is imageMagick, but no dice.

What am i missing?

UPDATE: Problem arises with images that are smaller than the set image size: i was expecting WP to create image versions by scaling them up, but it doesn't. So, my bad, sorry for getting that point wrong.

-
Could you add specific example with actual numbers? Like "I upload image of these dimensions and expect such size to be that, but instead it's...". There is quite a few lines of math going on to calculate resize and there are kinks in it that are much easier to catch when dealing with real numbers. –  Rarst Nov 1 '11 at 12:24
You're right: i did some tests carefully noting down image sizes and verifying what was done. Wrong ok for large images, doesn't work for images smaller than the set size, and my assumption is wrong. See Question update. –  pixeline Nov 3 '11 at 10:24