Images Rotated in Report

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
customaware
Posts: 2425
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Images Rotated in Report

Post by customaware »

I have a Report that displays a number of Photos.

I am using ImageMajck to orientate the Portrait and Landscape photos correctly.

I the BO Form they look like this.....
sw_4.jpeg
sw_4.jpeg (185.65 KiB) Viewed 1832 times
The Photos are stored in the filesystem and when I look at the files at the path location they a oriented correctly.

However, when I add them to a Report the are rotated for some weird reason.... like this....
sw-1.jpeg
sw-1.jpeg (194.09 KiB) Viewed 1832 times
However, for Portrait mode photos.... it seems fine.... like this...
sw_3.jpeg
sw_3.jpeg (189.31 KiB) Viewed 1832 times
Would really appreciate if anyone knows what is causing this and if there is any way to resolve it.

TIA.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
rocketman
Posts: 1260
Joined: Fri Jan 02, 2009 11:22 pm
Location: Preston UK
Contact:

Re: Images Rotated in Report

Post by rocketman »

Gosh - not seen this in a lonnnng time. Are you taking the photos with an old iPhone by any chance?

Time was -when IPhones didn’t add the orientation meta data to their images. Try opening them in something like Gimp and then re-saving and uploading them.

If nothing else it will at least point to where the problem might lie.
Rocketman

V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
Jaymer
Posts: 2520
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Images Rotated in Report

Post by Jaymer »

Search the forum for EXIF and READ MY POSTS
Long time issue
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
customaware
Posts: 2425
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

SOLVED: Images Rotated in Report

Post by customaware »

Ok... Seems like I have fixed it....

I added -set `exif:Orientation` `1` to the magik mogrify command and it seems to have corrected the problem.

ie....

EXECUTE PROGRAM 'magick mogrify -set `exif:Orientation` `1` -format jpg C:\TempImage\'+FILE_NAME(PictureItemForAnswers.Picture)+'.'+FILE_EXTENSION(PictureItemForAnswers.Picture)
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
Post Reply