Page 1 of 1

Why i can't write the exif to my file?

Posted: 2007-09-06T01:57:03-07:00
by kymapuk
FILE *f = fopen("t_img11.jpg", "wb");
printf("\n%s\n",MagickGetImageAttribute(magick_foto, "EXIF:WinXP-Author"));
MagickSetImageAttribute(magick_foto, "EXIF:WinXP-Author","TEST");
printf("\n%s\n",MagickGetImageAttribute(magick_foto, "EXIF:WinXP-Author"));
WRITE_TO_FILE(magick_foto,MagickWriteImagesFile,"t_img11.jpg");
fclose(f);

good day

Why i can't write the exif to my file?
The problem is:
when i read exif from my file
i see only first symbol of it
for example: "test" i see only "t"
and
when i wrote the exif to my file
i don't see it
the exif isn't changed
why?????
help me please