A helper that generates thumbnails of images and uses a cache to store them.
PHP
Pull request Compare This branch is 3 commits ahead, 4 commits behind emersonsoares:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
View/Helper
.gitignore
README.md

README.md

#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;