$source
$source :
Generate the thumbnail of an image.
Sample usage.
$thumbnail = new Pluf_Image_Thumbnail($thumbnail_folder, $source_image); if (!$thumbnail->exists()) { $thumbnail_filename = $thumbnail->generate(); }
getName( $size = null) : string
Get the name of a thumbnail from the image name, the image name can include a path this is just a md5() operation.
If the height and the width are given, the info is used to generate the name, else not.
$size |
Filename of the thumbnail.