How to know if IPTC can be saved?

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

Moderators: helmut, XnTriq, xnview

Post Reply
kurka666
Posts: 47
Joined: Thu Mar 10, 2005 11:41 am

How to know if IPTC can be saved?

Post by kurka666 »

Hi

Is it possible to know if a file type supports saving of IPTC without trying first and then checking the error response?

The gflFormatIsWritableByName/Index may return Yes even if metadata can not be saved (for example for .BMP)

Thanks

Henrik
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: How to know if IPTC can be saved?

Post by xnview »

kurka666 wrote:Hi

Is it possible to know if a file type supports saving of IPTC without trying first and then checking the error response?

The gflFormatIsWritableByName/Index may return Yes even if metadata can not be saved (for example for .BMP)
No, i must add a fuction for that. Currently you have only JPEG...
Pierre.
kurka666
Posts: 47
Joined: Thu Mar 10, 2005 11:41 am

Post by kurka666 »

ok - that's what I thought. For now, I'll just hard code a check for JPG or others.

Thanks!
Post Reply