note 69195 added to function.imagejpeg
| From: | jgonzalez at _nospam dot innox dot com dot mx | Date: | Sat, 26 Aug 2006 15:06:50 +0000 |
| Subject: | note 69195 added to function.imagejpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116361@lists.php.net to get a copy of this message | ||
Well; I've just wasted around an hour trying to output a JPG image using imagejpg($im); it was
outputing a broken image.
The strange thing was that if I filled the filename argument, and saw the resulting file from the
file system, the image was correct.
Solution:
ob_clean() before imagejpg()
----
Server IP: 200.36.127.20
Probable Submitter: 189.169.7.140
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.imagejpeg.php
Edit -- https://master.php.net/note/edit/69195
Del: integrated -- https://master.php.net/note/delete/69195/integrated
Del: useless -- https://master.php.net/note/delete/69195/useless
Del: bad code -- https://master.php.net/note/delete/69195/bad+code
Del: spam -- https://master.php.net/note/delete/69195/spam
Del: non-english -- https://master.php.net/note/delete/69195/non-english
Del: in docs -- https://master.php.net/note/delete/69195/in+docs
Del: other reasons-- https://master.php.net/note/delete/69195
Reject -- https://master.php.net/note/reject/69195
Search -- https://master.php.net/manage/user-notes.php