From:             j-pieper at gmx dot net
Operating system: Windows Vista SP1
PHP version:      5.2.6
PHP Bug Type:     GD related
Bug description:  imagepng causes zlib error when quality param is given

Description:
------------
I wanted to create png image with imagepng(). It works fine but when I add
third parameter (int $quality) it causes an zlib error.

Reproduce code:
---------------
<?php

$image = imagecreatetruecolor(50, 50);
imagepng($image, null, 100);

Expected result:
----------------
50x50px image with white background

Actual result:
--------------
Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib
error in C:\var\www\laboratory\star\example.php on line 4

Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns
error condition in C:\var\www\laboratory\star\example.php on line 4

-- 
Edit bug report at http://bugs.php.net/?id=46751&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=46751&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=46751&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=46751&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=46751&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=46751&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=46751&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=46751&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=46751&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=46751&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=46751&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=46751&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=46751&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=46751&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=46751&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=46751&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=46751&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=46751&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=46751&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=46751&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=46751&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=46751&r=mysqlcfg

Reply via email to