How to resize images during upload using Zend_File_Transfer_Adapter_Http ();

I am using Zend_File_Transfer_Adapter_Http to upload images. I need to set the maximum image upload size to 300 * 300. Are there any solutions in the Zend_File_Transfer_Adapter_Http class. Please help me. Seek a solution; but nothing helps.

+5
source share
2 answers

Executed using Zend_Filter_ImageSize.

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

If you want to allow large downloads and resizing, see http://phpthumb.gxdlabs.com/

+1
source

All Articles