Previous Thread
Next Thread
Print Thread
Hop To
[DEMO] iPhone image rotation by exif data #262977 07/26/2019 11:07 AM
Joined: Apr 2004
Posts: 1,571
Likes: 6
isaac Online Splat OP
UBB.threads Developer
OP Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,571
Likes: 6
The images in this set of three posts were taken by an iPhone.


UBB.threads 7.7.2 and older
Without JPEG image orientation fixes

IMAGE 1 ORIENTATION with GD2
Firefox: Wrong
Chrome: Wrong
Safari: Wrong
Edge: Wrong.

vs

IMAGE 2 ORIENTATION with ImageMagick
Firefox: Wrong
Chrome: Wrong
Safari: Good, but displays incorrectly in Lightbox viewer because of wrong EXIF data.
Edge: Wrong

Attached Files 2019-07-26 08.51.40.jpg2019-07-26 08.51.40.jpg

Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: [DEMO] iPhone image rotation by exif data [Re: isaac] #262978 07/26/2019 11:08 AM
Joined: Apr 2004
Posts: 1,571
Likes: 6
isaac Online Splat OP
UBB.threads Developer
OP Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,571
Likes: 6
UBBCentral does not have the PHP exif_read_data function installed/enabled (uncommon).
https://www.php.net/manual/en/function.exif-read-data.php

This is a demo of what happens in that case.


UBB.threads 7.7.3 and newer, with jpeg image orientation fixes

IMAGE 1 ORIENTATION with GD2, function_exists('exif_read_data') = false
Firefox: Wrong
Chrome: Wrong
Safari: Wrong
Edge: Wrong

vs

IMAGE 2 ORIENTATION with ImageMagick, function_exists('exif_read_data') = false
Firefox: Good
Chrome: Good
Safari: Good
Edge: Good

Attached Files 2019-07-26 08.51.40.jpg2019-07-26 08.51.40.jpg

Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: [DEMO] iPhone image rotation by exif data [Re: isaac] #262979 07/26/2019 11:15 AM
Joined: Apr 2004
Posts: 1,571
Likes: 6
isaac Online Splat OP
UBB.threads Developer
OP Online Splat
UBB.threads Developer
Joined: Apr 2004
Posts: 1,571
Likes: 6
This is a demo of the PHP exif_read_data function installed and enabled.


UBB.threads 7.7.3 and newer, with jpeg image orientation fixes

IMAGE 1 ORIENTATION with GD2, function_exists('exif_read_data') = true
Firefox: Good
Chrome: Good
Safari: Good
Edge: Good

vs

IMAGE 2 ORIENTATION with ImageMagick, function_exists('exif_read_data') = true
Firefox: Good
Chrome: Good
Safari: Good
Edge: Good

Attached Files 2019-07-26 08.51.40.jpg2019-07-26 08.51.40.jpg

Current developer of UBB.threads PHP Forum Software // 7.7.3 released!
isaac @ id242.com // my forum @ CelicaHobby.com
Re: [DEMO] iPhone image rotation by exif data [Re: isaac] #262980 07/26/2019 12:43 PM
Joined: Dec 2003
Posts: 6,017
Likes: 1
Ruben Offline
Offline
Joined: Dec 2003
Posts: 6,017
Likes: 1
Impressive.
So this fixes orientation for any picture with the phone upright,sideways or upside down?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

Link Copied to Clipboard
Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Subscriptions Question
by Ruben - 01/14/2020 12:11 PM
Page won't load after 7.7.3 Update
by Jim0421 - 01/08/2020 11:11 AM
Ubb 7.7.3 winkey emoji shortcut issue
by Ruben - 01/07/2020 4:04 PM
testing winkey emoji shortcut
by Ruben - 01/06/2020 2:36 PM
Very strange problem
by Baldeagle - 01/05/2020 1:22 PM
Who's Online Now
2 members (isaac, Gizmo), 60 guests, and 227 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20200106)