Yii 1.1: wide-image

One simple image extension for Yii framework
4 followers

It uses WideImage (not bundled) and for now only includes Thumbnailer component that allows to generate thumbnails.

Resources

Installation

  • Download WideImage.

  • Unpack image extension under your extensions directory.

  • Configure Thumbnailer component:

'thumbnailer'=>array(
        'class'=>'ext.image.Thumbnailer',
        'wideImagePath'=>'../../wideimage', // WideImage relative path from application base path
        'width'=>256,
        'height'=>256,
    ),

Usage

  • Generate a thumbnail:
Yii::app()->thumbnailer->generate('path-to/image.jpg', 'path-to/thumbnail.jpg');

Total 1 comment

#12232 report it
pmaselkowski at 2013/03/08 08:12am
Whats the point of this extension?

Hardly to call this extension, sorry. What it really do? It is using wideimage around your class instead of directly, and with predefined thumb size.

Leave a comment

Please to leave your comment.

Create extension