note 97604 added to function.imagejpeg
| From: | annon at annon dot org | Date: | Tue, 27 Apr 2010 23:16:03 +0000 |
| Subject: | note 97604 added to function.imagejpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168737@lists.php.net to get a copy of this message | ||
Just to bump an issue raised by james [at] bellisinasce.it
If you intend to use this feature (or echo $Image etc) anything printed to the browser before the
image data (except the content type header) will corrupt the image and it will not display.
I was using this:
<?
print "\n";
include($Module);
print "\n";
?>
Because the script printed text data instead of image (which the browser was expecting after
requesting it) the browser will then think that the image is corrupt and not display it.
The same is also said for any HTML output too. The browser expects pure IMAGE data ONLY. Any other
output with the exception of the headers will render your image useless!
----
Server IP: 78.110.173.36
Probable Submitter: 87.112.246.221
----
Manual Page -- http://www.php.net/manual/en/function.imagejpeg.php
Edit -- https://master.php.net/note/edit/97604
Del: integrated -- https://master.php.net/note/delete/97604/integrated
Del: useless -- https://master.php.net/note/delete/97604/useless
Del: bad code -- https://master.php.net/note/delete/97604/bad+code
Del: spam -- https://master.php.net/note/delete/97604/spam
Del: non-english -- https://master.php.net/note/delete/97604/non-english
Del: in docs -- https://master.php.net/note/delete/97604/in+docs
Del: other reasons-- https://master.php.net/note/delete/97604
Reject -- https://master.php.net/note/reject/97604
Search -- https://master.php.net/manage/user-notes.php