Image Resizer
Component ID
1900724
Component name
Image Resizer
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Summary
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"
Requirements
Just Drupal Core.
Installation
Enable the module.
$preview_file = _image_resizer_style_path('my_cropper_style', $portfolio->file_uri, '640x400');
$preview_url = file_create_url($preview_file);
The $preview_url should be something like
http://nailartinlondon.co.uk/sites/default/files/ir/a_crop/public/640x40...
Change the the 640x480 to any dimension you would like, and wonder. :)
