Error with gflSetIPTCValue
Posted: Fri Apr 01, 2005 9:45 am
When I use gflSetIPTCValue function I always have a "Bad parameters" error even when it works !!
When I run this code I got the described error , but if I open the output1.jpg file I can see the new IPTC data.
I use the last version of GFL SDK.
Ithier
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