Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 520 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 520 Bytes

#THUMBNAILS HELPER FOR CAKEPHP 2.0

Helper to generate thumbnail images dynamically by saving them to the cache. Alternative to phpthumb.

Inspired in http://net.tutsplus.com/tutorials/php/image-resizing-made-easy-with-php/

usage:

echo $this->Thumbnail->render('teste.jpg', array(
  'path' => '',
  'width' => '100',
  'height' => '100',
  'resize' => 'portrait',
  'quality' => '100'
), array('id' => 'img-test', 'alt' => 'thumbnail test'));

Resize options: exact, portrait, landscape, auto, crop;