#31726 [Bgs]: GD -JPEG-JFIF error

From: Date: Tue, 01 Feb 2005 09:05:59 +0000
Subject: #31726 [Bgs]: GD -JPEG-JFIF error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-73183@lists.php.net to get a copy of this message
 ID:               31726
 Updated by:       pajoye@php.net
 Reported By:      skyfox at isp dot ee
 Status:           Bogus
 Bug Type:         *Graphics related
 Operating System: Debian
 PHP Version:      4.3.10
 New Comment:

Please stop to comment this bug. Your images are not valid. Fix them or
ask your clients to fix them.

--Pierre


Previous Comments:
------------------------------------------------------------------------

[2005-02-01 09:38:14] skyfox at isp dot ee

then verify broken upload photo not work!

this is from my code:
  if ($_FILES["photo"]["error"]==UPLOAD_ERR_NO_FILE)
{return($lns[49]);}
  if ($_FILES["photo"]["error"]==UPLOAD_ERR_PARTIAL)
{return($lns[50]);}
  if (($_FILES["photo"]["error"]==UPLOAD_ERR_INI_SIZE)
     ||($_FILES["photo"]["error"]==UPLOAD_ERR_FORM_SIZE))
{return($lns[51]);}
  if
($_FILES["photo"]["error"]<>UPLOAD_ERR_OK){return('Error:'.$_FILES["photo"]["error"]);}

------------------------------------------------------------------------

[2005-02-01 09:28:10] pajoye@php.net

We do not want to support broken images. Even if a broken IE can load
them, accepting invalid images/data as valid data is the best to run in
troubles.

--Pierre

------------------------------------------------------------------------

[2005-01-31 16:37:07] skyfox at isp dot ee

Derick - try it by IE ;) no errors

------------------------------------------------------------------------

[2005-01-31 11:25:48] derick@php.net

When opening it in GIMP I get the following error:

Corrupt JPEG data: 145 extraneous bytes before marked 0xd9

EXIF data will be ignored.

------------------------------------------------------------------------

[2005-01-31 11:19:22] skyfox at isp dot ee

http://www.amur.ee/~deni/60672
this is not BROKEN PHOTO!

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/31726

-- 
Edit this bug report at http://bugs.php.net/?id=31726&edit=1


Thread (10 messages)

« previous php.bugs (#73183) next »