Strange behaviour with gflBitmapHasIPTC and gflBitmapGetIPTC

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

User avatar
Ithier
Posts: 47
Joined: Fri Nov 19, 2004 10:50 am
Location: Paris, France

Strange behaviour with gflBitmapHasIPTC and gflBitmapGetIPTC

Post by Ithier »

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
User avatar
xnview
Author of XnView
Posts: 45870
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Strange behaviour with gflBitmapHasIPTC and gflBitmapGet

Post by xnview »

Ithier 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 ?
Yes, some pictures have a IPTC field, but without data
Pierre.