开发者

How to Resize Image while Uploading using Zend_File_Transfer_Adapter_Http();

I am using Zend_File_Transfer_Adapter_Http for uploading Images. I need to set maximum size of uplo开发者_如何学运维ading images to 300*300.Is there any solutions in Zend_File_Transfer_Adapter_Http class.Please help me.Already browse for solution; but nothing helps.


It is making with help of Zend_Filter_ImageSize.

$filter = new Zend_Filter_ImageSize(); 
$output = $filter->setHeight(100) 
->setWidth(200) 
->filter('./orig.jpg'); 


If you want to allow a bigger upload but resize, see http://phpthumb.gxdlabs.com/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜