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
problem with exif data, change orientation info
Re: problem with exif data, change orientation info
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.
-
luiie
Re: problem with exif data, change orientation info
hello again,
MagickSetImageOrientation is woking fine, thak you
regards, marko
MagickSetImageOrientation is woking fine, thak you
regards, marko
Who is online
Users browsing this forum: No registered users and 17 guests