#32633 [Opn->Bgs]: Warning message from imagecreatefromjpeg not suppressed when using @
| From: | derick@php.net | Date: | Fri, 08 Apr 2005 09:33:09 +0000 |
| Subject: | #32633 [Opn->Bgs]: Warning message from imagecreatefromjpeg not suppressed when using @ | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-76523@lists.php.net to get a copy of this message | ||
ID: 32633
Updated by: derick@php.net
Reported By: anders at apt dot no
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: Windows 2003 Advanced Server
PHP Version: 4.3.11
New Comment:
And that other guy says it's a message from libjpeg - which we do not
control. Which makes it not a bug in PHP -> bogus.
Previous Comments:
------------------------------------------------------------------------
[2005-04-08 11:31:44] derick@php.net
It *is* a broken image - the GIMP says so too.
------------------------------------------------------------------------
[2005-04-08 10:42:35] anders at apt dot no
Description:
------------
I'm trying import a JPEG image
(http://kunde.apt.no/aso/imagecreatefromjpeg/demo.jpg) to a resource
using imagecreatefromjpeg. This function fails and even though I use @
infront of the function, it still generates an error warning 'Corrupt
JPEG data: 203 extraneous bytes before marker 0xd9'. The image works
fine in every other program I've tested it with.
Some guy has found his own workaround:
http://www-personal.umd.umich.edu/~dennismv/corruptjpeg.html
Reproduce code:
---------------
if ($im =
@imagecreatefromjpeg('http://kunde.apt.no/aso/imagecreatefromjpeg/demo.jpg'))
{
echo 'Valid JPEG file';
imagedestroy($im);
} else {
echo 'Not a valid JPEG file';
}
Expected result:
----------------
I expect the code to output 'Not a valid JPEG file', since the JPEG
contains errors, and nothing else (since I've suppressed error messages
with the @)
Actual result:
--------------
Not a valid JPEG fileCorrupt JPEG data: 203 extraneous bytes before
marker 0xd9
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32633&edit=1