This widget uses URL-based API for process images. There are many commands:
Yii 1.1 or above (tested on 1.1.8)
The webservice urlimg.com is completely free to use up to the first 50 MB of processed images stored.
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'resize', 'width' => '66', 'height' => '66' ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'scale', 'percent' => '66', ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'width', 'size' => '66', ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'hright', 'size' => '66', ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'fit', 'width' => '66', 'height' => '66', ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'thumbnail', 'size' => '66', ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'square', 'size' => '66', ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'crop', 'cornerx' => '66', 'cornery' => '66', 'width' => '66', 'height' => '66' ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'wm', 'text' => 'Some text' ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'bw' ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'invert' ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'blur' ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'sharpen' ));
$this->widget('ext.imgresizer.ImgResizer', array( 'imageUrl' => 'http://www.yiiframework.com/files/logo/yii.png', 'command' => 'convert', 'format' => 'gif' ));
Total 1 comment
The webservice urlimg.com is completely free to use up to the first 50 MB of processed images stored. If someone know a webservice with no limit, I'll update this extension.
Leave a comment
Please login to leave your comment.