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

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
kymapuk

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

Post by kymapuk » 2007-09-06T01:57:03-07:00

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

Post Reply