Add exif data

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

Moderators: XnTriq, helmut, xnview

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

Add exif data

Post by sct|nsky »

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: 45050
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Add exif data

Post by xnview »

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 »

You dont have any example code how to do it?
User avatar
xnview
Author of XnView
Posts: 45050
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Add exif data

Post by xnview »

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 »

is that c ? im a newbie that uses visual basic...
User avatar
xnview
Author of XnView
Posts: 45050
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Add exif data

Post by xnview »

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.