Add exif data

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

Moderators: XnTriq, xnview

Post Reply
sct|nsky
Posts: 16
Joined: Sun Mar 21, 2010 1:20 pm

Add exif data

Post by sct|nsky » Tue Nov 16, 2010 9:25 pm

I have scanned a lot of old pictures and now i want to add the correct date to them.
So is it possible to add exif data to an picture that dont have any exif data in it.
Can i do it with the gfl sdk?

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

Re: Add exif data

Post by xnview » Wed Nov 17, 2010 9:22 am

yes you can add EXIF values with GFLSDK
Pierre.

sct|nsky
Posts: 16
Joined: Sun Mar 21, 2010 1:20 pm

Re: Add exif data

Post by sct|nsky » Wed Nov 17, 2010 5:47 pm

You dont have any example code how to do it?

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

Re: Add exif data

Post by xnview » Wed Nov 17, 2010 8:28 pm

for example

Code: Select all

GFL_EXIF_DATAEX* exif = gflBitmapGetEXIF2(gflBitmap); 
gflBitmapSetEXIFValueString2( exif, GFL_EXIF_IFD_0, 0x0131, "my soft" );  
gflBitmapSetEXIFValueRational2(exif, GFL_EXIF_IFD_0, 0x011a, 200, 1);
gflBitmapSetEXIF2(gflBitmap,exif);
Pierre.

sct|nsky
Posts: 16
Joined: Sun Mar 21, 2010 1:20 pm

Re: Add exif data

Post by sct|nsky » Thu Nov 18, 2010 9:40 pm

is that c ? im a newbie that uses visual basic...

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

Re: Add exif data

Post by xnview » Fri Nov 19, 2010 8:00 am

sct|nsky wrote:is that c ? im a newbie that uses visual basic...
yes C. Currently the VB wrapper is not updated for that...
Pierre.

Post Reply