ImageToolsIMagick Class Reference
[ImageTools]
Wrapper around common image operations based upon IMagick PECL extension. More...
Public Member Functions |
|
resize ($image_data, $width, $height, $resolution=false) |
Detailed Description
Wrapper around common image operations based upon IMagick PECL extension.
- Attention:
- Non-Working stub!
- See also:
- http://pecl.php.net/package/imagick
Definition at line 12 of file imagetools.imagick.cls.php.
Member Function Documentation
ImageToolsIMagick::resize | ( | $ | image_data, | |
$ | width, | |||
$ | height, | |||
$ | resolution = false |
|||
) |
Definition at line 13 of file imagetools.imagick.cls.php.
00013 { 00014 $img = new Imagick(); 00015 $img->readImageBlob($image_data); 00016 $img->resizeImage($width, $height, 0, 1, true); 00017 if ($resolution > 0) { 00018 $img->resampleImage($resolution, $resolution, 0, 1); 00019 } 00020 return new ImageInformationIMagick($img); 00021 }
The documentation for this class was generated from the following file:
- contributions/lib.imagetools/lib/components/imagetools_impl/imagetools.imagick.cls.php