Code: Select all
#include "stdio.h"
#include "libgfl.h"
int main(int argc, char* argv[])
{
gflLibraryInit();
//Addinf IPTC Data
GFL_IPTC_DATA* iptc = gflNewIPTC();
GFL_ERROR err = gflSetIPTCValue(iptc, GFL_IPTC_BYLINE, "test18");
printf ("Error: %d: %s", err, gflGetErrorString(err));
//Error but we still try to write
gflSaveIPTC("output1.jpg", iptc);
gflFreeIPTC(iptc);
return 0;
}
I use the last version of GFL SDK.
Ithier