#23056 [NEW]: gif and jpeg php generated pictures bug

From: Date: Fri, 04 Apr 2003 16:56:08 +0000
Subject: #23056 [NEW]: gif and jpeg php generated pictures bug
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37145@lists.php.net to get a copy of this message
From: dan1 at edenpics dot com Operating system: Linux RedHat 7.1 PHP version: 4.3.1 PHP Bug Type: Output Control Bug description: gif and jpeg php generated pictures bug Hello. I found out something strange: when I generate a picture with PHP, the output (sniffed on the net) starts with something like "c02\r\n" before the rest of the picture ("GIF89a.."): this does not frighten Netscape, however IE does display it, but when you want to save it, then it doesn't understand the format and you cannot save the picture in the real format, but only in BMP. I made a little report of what I did to find this out, and saw that huge amount of people had this problem.. Here is the link of the report: http://www.edenpics.com/pub/iebug/iebug2.phtml And here is the code that generates the bug: <? header("Content-type: image/gif"); $fd = fopen("bird.gif","r"); $filelength=filesize($output); $contents = fread($fd,$filelength); echo $contents; fclose($fd); ?> Thank you for looking at this.. it took me time to find it, so I hope this will help ! Kind Regards to you programmer, Daniel -- Edit bug report at http://bugs.php.net/?id=23056&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23056&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23056&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23056&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23056&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23056&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23056&r=support Expected behavior: http://bugs.php.net/fix.php?id=23056&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23056&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23056&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23056&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23056&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23056&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23056&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23056&r=gnused

« previous php.bugs (#37145) next »