It seems the default image format is PNG and I couldn't find a way to change it (perhaps JPG might have better compression). Have you tried decreasing the height/width? 900KB seems rather large even for a PNG.
-- *Hector Virgen* Sr. Web Developer Walt Disney Parks and Resorts Online http://www.virgentech.com On Mon, Oct 18, 2010 at 6:40 AM, Cem Derin <[email protected]> wrote: > Hello, > > I've used Zend_Captcha_Image to create Captchas for a stand alone form > (code below). Unfortunately I discovered, that the class creates huge image > files (with this code the images are about 900KB), way too heavy for web > applications. Did you experienced this problem too? Do you have any > suggestions? I already tweaked the class to use the third (compression-) > argument in imagepng – unfortunately without any effect. > > $captcha = new Zend_Captcha_Image(array( > 'name' => 'foo', > 'wordLength' => '4', > 'timeout' => 300, > 'font' => $path, > 'imgDir' => $savePath, > 'imgUrl' => '/captcha', > 'width' => 304, > )); > > php version: php version 5.2.12.14-dev > > gd info > > gd > > GD Support enabled > GD Version bundled (2.0.34 compatible) > FreeType Support enabled > FreeType Linkage with freetype > FreeType Version 2.2.1 > T1Lib Support enabled > GIF Read Support enabled > GIF Create Support enabled > JPG Support enabled > PNG Support enabled > WBMP Support enabled > XPM Support enabled > XBM Support enabled > > > Thanks > > Cem > * > Cem Derin : Software Development : T +49.211.8670 175 > > wysiwyg* software design gmbh : Stresemannstr. 26, 40210 Düsseldorf > Hrb 31084, Ust. Id.Nr: DE 811799982 : GF: Florian Breiter > T +49.211 8670 10 : F +49.211 134679 : aktuell: http://www.wysiwyg.de > >
