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/
精彩评论