Bug #10905 Updated: ImageGif (ImagePNG) output uncompressed

From: Date: Sun, 14 Apr 2002 23:40:34 +0000
Subject: Bug #10905 Updated: ImageGif (ImagePNG) output uncompressed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-4991@lists.php.net to get a copy of this message
ID: 10905 Updated by: tux@devel.ee Reported By: pumuckel@metropolis.de Status: Closed Bug Type: Output Control Operating System: Linux PHP Version: 4.0.5 New Comment: it looks like its an netscape 4.x bug. i tested with zlib.output_compression (php 4.1.2) off and all gd generated images worked fine. but when the compression is On, images appeared broken... There's no problem with netscape 6x and msie 5.5/6.0. Is it possible to turn off zlib.output_compression within php script, so that we could manually decide which browsers get gzipped data? Previous Comments: ------------------------------------------------------------------------ [2002-01-02 13:55:44] lobbin@php.net No feedback. Closing. ------------------------------------------------------------------------ [2001-12-12 05:02:21] yohgaki@php.net Ok Derick. It would be useful for other purposes also. Status = Feedback. To reporter, Could you try it on snapshot http://snaps.php.net/ Please provide *short* script. Thank you. ------------------------------------------------------------------------ [2001-12-12 04:39:21] derick@php.net Let's not make this bogus. However, please post a short reproducing example script. Derick ------------------------------------------------------------------------ [2001-12-12 04:27:44] yohgaki@php.net If you want to compress images, use zlib extension. ------------------------------------------------------------------------ [2001-05-16 12:17:43] pumuckel@metropolis.de Using the compression ob_gzhandler all HTML Pages get compressed well. But dynamic generated Images don't get compressed. Header of the output says, it is compressed, but the data following the header isn't. So those images can't be displayed (by at least netscape) Thanks for the patch, ;-) mike PS: Don't tell me that it isn't useful to gzip images, but if you have switched compression to 'enabled' in your php.ini file and you are creating images on the fly, you'll need it to handle this case correctly. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=10905&edit=1

« previous php.bugs (#4991) next »