I am trying to use FreeImage in Lazarus. When image contains metadata, this code:
saves files, that I can't open, they seem to be corrupted. For example Gimp says "No space to read TIFF directory". Example file (about 17MB, saved from Nikon Capture NX2):
Above code works without problems for tiffs without metadata and for jpg with or without metadata.
Any help? :)
This file contains an Exif "GPS IFD" tag located inside the TIFF IFD (where IFD stands for Image File Directory, this is an offset used to read the next entry inside the file).
The "GPS IFD" tag SHOULD BE (MUST BE - see Exif v2.3 specification - ?) located inside the Exif IFD (and NOT inside the TIFF IFD).
This was causing a bug when reading, then writing a TIFF containing such a misplaced IFD tag.
This bug is fixed in the CVS (the tag is simply ignored when loading a file).
Is there any chance for a new version soon?
Now I am creating image without metadata and using exiftool for cloning all tags :)
And, BTW, this is maybe for another thread, but..
I can't create bitmap with 24 (or 48) bpp.
This code creates bitmap with 8bpp:
So after this call I have to
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.