note 53666 added to function.imagejpeg

From: Date: Wed, 08 Jun 2005 16:54:38 +0000
Subject: note 53666 added to function.imagejpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-90130@lists.php.net to get a copy of this message
When displaying an image using imagepng or imagejpeg, you may want/need to call "header("Content-type: image/jpeg")" before the imagepng and imagejpeg functions. It appears that some servers/browers are striping out the default header so the image is not rendered and appears as raw data. (Firefox 1.02+ and OSX Safari for example) ---- Manual Page -- http://www.php.net/manual/en/function.imagejpeg.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53666 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53666&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53666&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53666&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53666&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53666&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53666&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90130) next »