Page 1 of 1

problem with exif data, change orientation info

Posted: 2007-04-04T12:34:44-07:00
by luiie
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

Re: problem with exif data, change orientation info

Posted: 2007-04-04T14:39:40-07:00
by magick
In about a week we are releasing ImageMagick 6.3.3-6. In it you will find MagickSetOrientation() and MagickSetImageOrientation(). Use it and it will automatically update your EXIF profile with the specified orientation.

Re: problem with exif data, change orientation info

Posted: 2007-04-06T13:22:57-07:00
by luiie
hello again,

MagickSetImageOrientation is woking fine, thak you :D

regards, marko