Skip to content

A cakephp helper that generates thumbnails of images and uses a cache to store them.

Notifications You must be signed in to change notification settings

chavdamahesh/ThumbnailsPlugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

##Thumbnails helper for cakephp 2.x

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',
        'resizeOption' => 'portrait',
        'quality' => '100'
            ), array('id' => 'img-test', 'alt' => 'thumbnail test'));

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

About

A cakephp helper that generates thumbnails of images and uses a cache to store them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%