Support standalone JPEG APP1 segments as an Image format
|Assignee:||Robin Mills||% Done:|
JPEG parser should be able to read/write standalone JPEG APP1 segments, leave the code common in JpegImage.
An App1Image class derived from JpegBase will deal with the format recognition.
From an email exchange with Gilles Caulier:
This seems to be a complete JPEG APP1 Exif segment. To support this in Exiv2,
I'll need to tweak the JPEG parser a bit to also accept such a segment alone,
but will have to be very careful to avoid side effects.
A quick hack is faster: The TIFF header starts 10 bytes into the file, so just
add 10 from the beginning of the data buffer and use ExifData::load...
// Read the file into a memory buffer
long len = io.size();
if (io.error() || io.eof()) throw Error(14);
int rc = exifData.load(buf.pData_ + 10, buf.size_ - 10);
On Tuesday 11 April 2006 04:44, you wrote:
Here we are a bin raw exif file extrcated from my Minolta Dynax 5D camera
using gphoto2 interface (via digikam camera gui)
This file cannot be parsed by Exiv2. I don't know why...
But, this file can be parsed using libexif (via old implementation of
Can you give me your viewpoint ? This problem can be fixed easily into
Exiv2 core ?
Thanks in advance
#2 Updated by Robin Mills about 2 years ago
- Description updated (diff)
- Category changed from metadata to not-a-bug
- Status changed from New to Closed
- Assignee set to Robin Mills
- Target version set to 0.26
I don't believe there is such a file format. It is not listed here: https://en.wikipedia.org/wiki/List_of_file_signatures
It would be possible to write a little filter app1tojpeg to wrap such the file into a genuine JPEG which can be handled by Exiv2.