Re: Unknown error with imagecreatefromjpeg() on specific GD/PHP versions.
| From: | Jeff MacDonald | Date: | Wed, 16 Jun 2010 14:42:53 +0000 |
| Subject: | Re: Unknown error with imagecreatefromjpeg() on specific GD/PHP versions. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-306200@lists.php.net to get a copy of this message | ||
On 2010-06-16, at 11:37 AM, Richard Quadling wrote:
> On 16 June 2010 15:26, Jeff MacDonald <jeff@bignose.ca> wrote:
>> Hi Everyone,
>>
>> One of my developers is reporting a problem on our Live server but not our devel server.
>>
>> Specifically when someon uploads a photo taken by a KODAK EASYSHARE C813, and that image
>> gets processed by imagecreatefromjpeg(), the function returns false.
>>
>> Our Devel Server Info [this works fine]
>> PHP Version : 5.2.6-3
>> GD Version: 2.0 or higher.
>> EXIF Version: 1.4
>>
>> Our Live Server Info [this one is the one that fails]
>> PHP Version: 5.2.13
>> GD Version : 2.0.34 compatible
>> EXIF Version : 1.4
>>
>> To see an example of this in action,
>>
>> Working function :
>> http://www.equipmentsearch.com/~jeff/tmp/image.php?i=w
>> Not working function : 4‡,À‹
>> QZ_|Ùðƒhttp://www.equipmentsearch.com/~jeff/tmp/image.php?i=n
>>
>> http://www.equipmentsearch.com/~jeff/tmp/image.php.txt is
>> the code.
>>
>> Does anyone have any ideas or suggestions of where to look next?
>>
>> Jeff.
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> The @ is suppressing this notice ...
>
> Notice: imagecreatefromjpeg(): gd-jpeg, libjpeg: recoverable error:
> Corrupt JPEG data: 31 extraneous bytes before marker 0xd9
Thanks!
I guess I'm wondering why this works on the Devel server but not the live?
Jeff.