GFLSDK 2.82 Linker error for EXIF editing functions

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

Moderators: XnTriq, xnview

Post Reply
User avatar
dominique
Posts: 72
Joined: Thu Nov 08, 2007 9:22 am

GFLSDK 2.82 Linker error for EXIF editing functions

Post by dominique » Wed Aug 13, 2008 3:56 pm

Hi Pierre,
I have linker problem (C++Builder6) when I use this functions :
- gflFreeEXIF2
- gflBitmapSetEXIFValueInt2
- gflBitmapGetEXIF2
I use "in file" search on the GFLSDK folder and this functions appears only in the header file.
Rgds,
Dom

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

Re: GFLSDK 2.82 Linker error for EXIF editing functions

Post by xnview » Wed Aug 13, 2008 5:02 pm

Right, please send me your email, and i'll send you a good version
Pierre.

User avatar
dominique
Posts: 72
Joined: Thu Nov 08, 2007 9:22 am

Exif continued

Post by dominique » Wed Aug 20, 2008 3:21 pm

Hi,
Thank you for sending the corrected libs and this examples (for everybody), it works nice :

Code: Select all

exif2 = gflBitmapGetEXIF2( gflBitmap );
GFL_EXIF_ENTRYEX* ptr = exif2->Root;
while ( ptr )
{
    printf("%x (%d) : %d %d %d  [%u]\n", (unsigned)ptr->Tag, (unsigned)ptr->Ifd, ptr->Format, ptr->NumberOfComponents, ptr->DataLength, ptr->Value );
    ptr = ptr->Next;
}

gflBitmapSetEXIFValueString2( exif2, 1, 0x010f, "My cam" );
gflBitmapSetEXIFValueInt2( exif2, 1, 0x0128, GFL_EXIF_USHORT, 10 );
gflBitmapSetEXIFValueInt2( exif2, 2, 0xa002, GFL_EXIF_ULONG, 512 );
gflBitmapSetEXIFValueRational2( exif2, 2, 0x829a, 512.0, 200.0 );

gflBitmapSetEXIFValueString2( exif2, 2, 0x9286, "ASCII   <My>" );
            
gflBitmapRemoveMetaData( gflBitmap );
gflBitmapSetEXIF2( gflBitmap, exif2 );
gflFreeEXIF2( exif2 );
I have images without EXIF information and I'd like to create it like IPTC's function gflNewIPTC. Is it possible to have a gflNewEXIF2 function or perhaps gflBitmapGetEXIF2 can send a blank structure?

Thanks in advence !
Dom

User avatar
dominique
Posts: 72
Joined: Thu Nov 08, 2007 9:22 am

Post by dominique » Mon Aug 25, 2008 10:11 am

Hi,

With corrected .lib and .dll sent by Pierre, gflBitmapGetEXIF2 returns a blank structure if there is no EXIF data in the input image.
So every things ok with EXIF now ;)
Dom

Post Reply