I'm a JPEG novice, and I'm trying to decode a (possibly corrupted) JPEG (or rather, JFIF) file.
My image viewer program complains about an illegal 0xb9 marker.
The file does not have an SOF (Start Of Frame) marker, instead it has this APP1 segment
ff e1 00 0b 50 49 43 00 02 28 3c 01 00
followed by this segment with a 0xb9 marker:
ff b9 00 11 08 06 4c 04 d3 03 01 22 00 02 11 01 03 11 01
What am I looking at here?
EDIT
I have been asked about where the file came from. Here's the story:
About 20 years ago I bought a collection of magazines on CD-ROMs. The magazines can, however, only be read on old Windows computers, so I'm trying to find another way to read them - preferably one that works on my Linux computer. As far as I can tell, the magazine pages are stored as a lot of JFIF files that are simply concatenated together.
So to start with, I've extracted one of the JFIF files, and now I'm trying to find a way to view it.
EDIT 2
I've been asked to share a picture file. I'm not sure if I'm committing a copyright violation by doing so, so I'll remove the file again after a couple of days. Anyway, one of the problematic picture files may be downloaded from here:
https://www.dropbox.com/s/9da72gdri8c9xwp/f1000.jpg
I have no idea what the file contains except that it is probably a page from MAD Magazine.
The ff b9
segment looks very much like a SOF0 segement, and changing it to ff c0
(SOF0) makes the picture visible, but only as a collection of random pixels.
The APP1 segment mentioned above contains the string PIC
, which is not part of any APP1 segement type that I'm aware of.
EDIT 3
Since this question has now been answered, I will remove the file from Dropbox in order to avoid any copyright issues. Thank you to all who contributed to this.