JImage::generateThumbs
Method to generate thumbnails from the current image. It allows creation by resizing or cropping the original image.
Signature
public function generateThumbs(mixed
$thumbSizes,
[integer
$creationMethod = self::SCALE_INSIDE] )
Parameters
-
$thumbSizes
- String or array of strings. Example: $thumbSizes = array('150x75','250x150');
-
$creationMethod
- 1-3 resize $scaleMethod | 4 create croppping | 5 resize then crop
Returns
- array
Errors/Exceptions
-
LogicException
-
InvalidArgumentException