|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10905 ImageGif (ImagePNG) output uncompressed
Submitted: 2001-05-16 12:17 UTC Modified: 2002-01-02 13:55 UTC
From: pumuckel at metropolis dot de Assigned:
Status: Closed Package: Output Control
PHP Version: 4.0.5 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
47 - 28 = ?
Subscribe to this entry?

 [2001-05-16 12:17 UTC] pumuckel at metropolis dot 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, ;-)


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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-12 04:27 UTC]
If you want to compress images,  use zlib extension.
 [2001-12-12 04:39 UTC]
Let's not make this bogus. However, please post a short reproducing example script.

 [2001-12-12 05:02 UTC]
Ok Derick.  It would be useful for other purposes also.

Status = Feedback.

To reporter,  Could you try it on snapshot

Please provide *short* script. Thank you.
 [2002-01-02 13:55 UTC]
No feedback. Closing.
 [2002-04-14 19:40 UTC] tux at devel dot ee
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?
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sat Oct 01 18:05:55 2022 UTC