note 97604 deleted from function.imagejpeg by danbrown
| From: | danbrown@php.net | Date: | Tue, 27 Apr 2010 23:17:00 +0000 |
| Subject: | note 97604 deleted from function.imagejpeg by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168738@lists.php.net to get a copy of this message | ||
Note Submitter: annon at annon dot org
----
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!