note 104902 added to function.imagecreatefromjpeg
| From: | Zane at osu1 dot php dot net | Date: | Thu, 14 Jul 2011 16:07:32 +0000 |
| Subject: | note 104902 added to function.imagecreatefromjpeg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181503@lists.php.net to get a copy of this message | ||
Some image where failing with a Warning: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error:
Premature end of JPEG file
The only way to make it work was to ini_set("gd.jpeg_ignore_warning", 1); and then call it
with @imagecreatefromjpeg()
It's far less than ideal, but if you're stuck as I was, give it a try.
----
Server IP: 81.88.49.13
Probable Submitter: 151.42.214.238
----
Manual Page -- http://www.php.net/manual/en/function.imagecreatefromjpeg.php
Edit -- https://master.php.net/note/edit/104902
Del: integrated -- https://master.php.net/note/delete/104902/integrated
Del: useless -- https://master.php.net/note/delete/104902/useless
Del: bad code -- https://master.php.net/note/delete/104902/bad+code
Del: spam -- https://master.php.net/note/delete/104902/spam
Del: non-english -- https://master.php.net/note/delete/104902/non-english
Del: in docs -- https://master.php.net/note/delete/104902/in+docs
Del: other reasons-- https://master.php.net/note/delete/104902
Reject -- https://master.php.net/note/reject/104902
Search -- https://master.php.net/manage/user-notes.php