php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10420 Corrupt JPEG data: premature end of data segment gd-jpeg: JPEG library reports
Submitted: 2001-04-20 06:37 UTC Modified: 2001-06-03 07:27 UTC
From: klink at free dot fr Assigned:
Status: Closed Package: GD related
PHP Version: 4.0.4pl1 OS: W2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 + 44 = ?
Subscribe to this entry?

 
 [2001-04-20 06:37 UTC] klink at free dot fr
i use PHP on command line dos : php file.php "parameter"

I have this error when my code want to copy and resize this
picture only this picture
http://a1692.g.akamai.net/f/1692/2042/1h/medias.lemonde.fr/medias/image_article/39sta1.jpg

First time i have and php fail :
Corrupt JPEG data: premature end of data segment gd-jpeg: JPEG library reports 
Corrupt JPEG data: bad Huffman code

a other time but php don't fail :
Corrupt JPEG data: premature end of data segment
gd-jpeg: JPEG library reports unrecoverable error: Unsupported marker type 0x78

Please contact me if you resolve the problem or find a solution

Thank

Stephane

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-29 06:32 UTC] jmoore@php.net
Reclassify
 [2001-06-03 07:27 UTC] sniper@php.net
Works for me with PHP 4.0.6RC2. Please try PHP 4.0.5 and 
if that does not work, wait for 4.0.6 to be released.

--Jani

 [2004-03-01 00:17 UTC] ingpancho at hotmail dot coom
Regarding this...
Corrupt JPEG data: premature end of data segment
gd-jpeg: JPEG library reports unrecoverable error: Unsupported marker
type 0x???
 I had this problem when I tried to upload certain files to a BLOB field (mySQL database).
Resizing the field type to MEDIUMBLOB was the solution, at least for me. Good luck.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC