JImage::createThumbs
Method to create thumbnails from the current image and save them to disk. It allows creation by resizing or croppping the original image.
Signature
public function createThumbs(mixed
$thumbSizes,
[integer
$creationMethod = self::SCALE_INSIDE,
[string
$thumbsFolder = null]] )
Parameters
-
$thumbSizes
- string or array of strings. Example: $thumbSizes = array('150x75','250x150');
-
$creationMethod
- 1-3 resize $scaleMethod | 4 create croppping
-
$thumbsFolder
- destination thumbs folder. null generates a thumbs folder in the image folder
Returns
- array
Errors/Exceptions
-
LogicException
-
InvalidArgumentException