Mask your image with different shapes and dimension. More option coming in future.
Requirements ¶
-Developed and tested with Yii 1.1.12 but may working with older versions too. -PHP GD library enabled.
Usage ¶
Extract the source file into protected/extensions folder.
Simply put this below widget in view file:
$this->widget('ext.imagemask.ImageMask', array(
'shape' => 'round',
'imgpath' => Yii::app()->basePath.'/../images/mango.jpg',
'width' => '200',
'height' => '200',
'title' => 'Sample Image',
));
Available shape: round, roundedsquare, polygon, oval.
Resources ¶
...external resources for this extension...
User Contributed Notes 5
Use pathinfo
Will fail if file has dots in name. To get file extension better use pathinfo
Fixed doted file name issue
thanks pmaselkowski. I have fixed the issue.
option
in shape you can use
'round'
'oval'
'roundedsquare'
'polygon';
Where is the demo
Can you add demo ?
Demo coming soon
hi samilo, demo is coming soon, thanks for using this extension. Any suggestion or comments will be appreciated.
Leave a comment
If you have any questions, please ask in the forum instead.
Join the conversation to share a note.