joomla/joomla-platform — pull request #1391 by phproberto (2012-07-20 23:55:59+00:00)
Title: [IMP] function to create thumbnails from the current image

Finally after the previous JImage required modifications I submit the optimized createThumbs function to quickly create thumbnails from the current image.

Example. Create 2 thumbnails with cropping:
jimport('joomla.image.image');
$imagen = new JImage(JPATH_SITE . DIRECTORY_SEPARATOR . 'images' . DIRECTORY_SEPARATOR . 'powered_by.png');
$thumbSizes = array('50x50', '250x100');
$imagen->createThumbs($thumbSizes, 4);