Page 1 of 1

Corrupt JPEG data: 34608 extraneous bytes before marker 0xda

Posted: 2013-08-26T13:33:53-07:00
by visitor x

Code: Select all

identify: Corrupt JPEG data: 34608 extraneous bytes before marker 0xda `blah.jpg' @ warning/jpeg.c/JPEGWarningHandler/346.
I've inherited a lot of JPEGs which have some extraneous information in them. Without recompressing the images, can ImageMagick strip these extraneous bytes without losing metadata?

Re: Corrupt JPEG data: 34608 extraneous bytes before marker

Posted: 2013-08-26T13:54:03-07:00
by fmw42
If IM can read the jpgs, then it will decompress and recompress to make the output. You will likely need some other tool. see http://www.imagemagick.org/Usage/formats/#jpg_non-im

Re: Corrupt JPEG data: 34608 extraneous bytes before marker

Posted: 2013-08-28T02:06:32-07:00
by visitor x
Thanks, I used the command

Code: Select all

jpegtran -perfect -copy all -outfile fixed.jpg broken.jpg
from this page: http://blog.rubrik.me.uk/2013/08/fixing ... osslessly/