Reading EXIF without entire image
Posted: 2007-10-26T09:12:32-07:00
Hi list,
can I extract EXIF data from an image without reading the entire image?
Currently I have something like this:
This works, but it takes too long (> 2 seconds per JPEG image, resolution ~ 2500x2000, which are on disk, so it really seems that the entire image is read; is this interpretation correct?)
Thanks, Oliver
can I extract EXIF data from an image without reading the entire image?
Currently I have something like this:
Code: Select all
try
{
Magick::Image image(filePath);
exif["DateTime"] = QString(image.attribute("EXIF:DateTime").c_str());
exif["Model"] = QString(image.attribute("EXIF:Model").c_str());
...
}
catch (Magick::Exception &ex)
{
...
}
Thanks, Oliver