Hi,
I have written a function to retreive IPTC data. First I call the gflBitmapHasIPTC function and if it returns true, then I call gflBitmapGetIPTC.
Generally it works fine, but for some tiff images (not all) gflBitmapHasIPTC return true, but gflBitmapGetIPTC returns a NULL pointer !
This is obviously not a big problem, but is it normal ?
Ithier
Strange behaviour with gflBitmapHasIPTC and gflBitmapGetIPTC
Moderators: helmut, XnTriq, xnview
-
- Posts: 47
- Joined: Fri Nov 19, 2004 10:50 am
- Location: Paris, France
-
- Author of XnView
- Posts: 45870
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Strange behaviour with gflBitmapHasIPTC and gflBitmapGet
Yes, some pictures have a IPTC field, but without dataIthier wrote:I have written a function to retreive IPTC data. First I call the gflBitmapHasIPTC function and if it returns true, then I call gflBitmapGetIPTC.
Generally it works fine, but for some tiff images (not all) gflBitmapHasIPTC return true, but gflBitmapGetIPTC returns a NULL pointer !
This is obviously not a big problem, but is it normal ?
Pierre.