problem with exif data, change orientation info
Posted: 2007-04-04T12:34:44-07:00
hello,
i have a problem to change the exif orientation info in a jpg file. input file jpg, output file jpg (scaled). here is some code:
char *Orientation;
MagickWand *MWand;
Orientation = MagickGetImageProperty (MWand, "EXIF:Orientation");
/*
change orientation, scale image
*/
Orientation = "1";
MagickSetImageProperty (MWand, "EXIF:Orientation", Orientation);
MagickWriteImage (MWand, PictureFile);
the PictureFile has the same exif data like the original file. thx for help, excuse my bad english!
regards, marko
i have a problem to change the exif orientation info in a jpg file. input file jpg, output file jpg (scaled). here is some code:
char *Orientation;
MagickWand *MWand;
Orientation = MagickGetImageProperty (MWand, "EXIF:Orientation");
/*
change orientation, scale image
*/
Orientation = "1";
MagickSetImageProperty (MWand, "EXIF:Orientation", Orientation);
MagickWriteImage (MWand, PictureFile);
the PictureFile has the same exif data like the original file. thx for help, excuse my bad english!
regards, marko