The purpose of this module is to let you
to resize images to arbitrary sizes.
This functionality is used in many Wordpress theme via the external
TimThumb image resizer, http://timthumb.googlecode.com. Installing such
module is an alien body in Drupal and cradle of many exploits.
This functionality tries to be a better solution. You can
- incorporate it with other Image module style effect
- Clean URL support
- Caches the rendered image, like as the normal "imagecache"
Just Drupal Core.
Enable the module.
$preview_file = _image_resizer_style_path('my_cropper_style', $portfolio->file_uri, '640x400');
$preview_url = file_create_url($preview_file);
$preview_url should be something like
Change the the 640x480 to any dimension you would like, and wonder. :)