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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: klink at free dot fr
New email:
PHP Version: OS:

 

 [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-2022 The PHP Group
All rights reserved.
Last updated: Tue May 17 08:05:45 2022 UTC