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.....
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....
However, for Portrait mode photos.... it seems fine.... like this...
Would really appreciate if anyone knows what is causing this and if there is any way to resolve it.
TIA.
Images Rotated in Report
-
- Posts: 2433
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
Images Rotated in Report
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Re: Images Rotated in Report
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.
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
V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
Re: Images Rotated in Report
Search the forum for EXIF and READ MY POSTS
Long time issue
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
Jaymer
Aware Programming & Consulting - Tampa FL
-
- Posts: 2433
- Joined: Mon Jul 02, 2012 12:24 am
- Location: Ulaanbaatar, Mongolia
SOLVED: Images Rotated in Report
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)
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....
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....