From: Jan P. <pa...@pi...> - 2005-07-25 07:03:21
|
Hi, I've also started investigating the possibility of parsing TIFFs. I've come up with more or less 3 solutions, one of them is yours. None of them is really perfect. However, I see one big possible drawback. With this approach, entire TIFF file is treated as EXIF. This means that entire (possibly multipage) TIFF file is read into memory by exif_loader_copy(). This can easily be dozens of megabytes. -- Jan > I'm have almost EXIF parsing from TIFF files working from current > libexif CVS. > Basically the change is to not copy over the 'Exif\0' marker (6 bytes), > because it is part of JFIF, not part of the Exif data. Exif data is just > TIFF structure, so everything else comes along.... > > Currently it sort of crashes with TIFF and CR2, but otherwise it works > with JPEG, at least with the current test suite. > > Any comments ? > > Hub |