开发者

How to Resize Image while Uploading using Zend_File_Transfer_Adapter_Http();

开发者 https://www.devze.com 2023-01-23 10:48 出处:网络
I am usingZend_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 cla

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

精彩评论

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