payu2107 / zii

Automatically exported from code.google.com/p/zii
0 stars 0 forks source link

Add Image component #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Reported by maxime.lafontaine, May 16, 2009

You should add the "image" extensions to Yii library.
I thinks it's enough useful to be include.

http://www.yiiframework.com/extension/image/

Maybe this would be better as a behavior? It is kind of a data-source.

Original issue reported on code.google.com by poppity...@gmail.com on 2 Sep 2009 at 11:35

GoogleCodeExporter commented 8 years ago

Original comment by qiang.xue on 10 Sep 2009 at 8:08

GoogleCodeExporter commented 8 years ago
I've made some improvements in image extension due to a particular necessity.

The two improvements are:
- watermark    =  to insert an overlay image
- insertText   =  to write some text in the image, using the font you want, the 
color
and size you want and in the position you want

My improved version of "image" is attached (and also a sample to use it). Only 
two
files were modified: Image.php and drivers/Image_GD_Driver.php

I haven't made changes in the Image_ImageMagick so, till now, these methods 
should 
work only with GD.

Hope it helps!!! Its very useful for me and I'd like to see it working in Yii 
1.1 if
possible, coz I think it would be useful to other people too.

Original comment by scoob.ju...@gmail.com on 2 Jan 2010 at 5:58

Attachments: