Photo rotation - Unable to read EXIF data

Web site news, suggestions, problems and changes.
Post Reply
User avatar
insitu_az
Site Admin
Posts: 215
Joined: Wed May 22, 2019 7:12 pm
Location: East Mesa

Photo rotation - Unable to read EXIF data

Post by insitu_az »

This thread is looking at the issue of photos from cell phones that can be rotated 90 degrees when posted to the forums. Trying to evaluate some work around approaches or possibly installing a beta release extension to see if that helps.

This is a test from a rotated photo. I downloaded it, then saved it under "Paint", then posted. No changes were made to the photo, it appears that paint has changed the EXIF file to make it appear in the correct orientation.


IMG_4282-new.jpg
IMG_4282-new.jpg (129.86 KiB) Viewed 5194 times
User avatar
insitu_az
Site Admin
Posts: 215
Joined: Wed May 22, 2019 7:12 pm
Location: East Mesa

Re: test photo

Post by insitu_az »

Test 2. I downloaded and saved the first photo to IMG 4260-new. No rotation. The second photo I downloaded and the posted without saving in Paint. Rotation still present.

IMG_4260-new.jpg
IMG_4260-new.jpg (138.72 KiB) Viewed 5192 times
IMG_4260.JPG
IMG_4260.JPG (150.4 KiB) Viewed 5192 times
User avatar
cgsheen
Posts: 124
Joined: Sat May 25, 2019 11:34 am
Location: Mesa, AZ

Re: test photo

Post by cgsheen »

IMG_4260.JPG
Look what happens when I save the original picture, rotate it 90 degrees in Paint, and then use the "Place Inline" button...
(you have to click on the picture to see what happens)
260Z - L28ET - MS3X ECU, Ford COP w/ Nissan Ignitor, diyautotune optical wheel - T04e .63 A/R, Intercooled - 310cc Injectors - Ultra Heaven Fuel Rail - 14point7 Spartan2 wideband - Coilovers - Big Brakes - 304 Gold Metallic! Sakura Garage, Phoenix AZ
User avatar
insitu_az
Site Admin
Posts: 215
Joined: Wed May 22, 2019 7:12 pm
Location: East Mesa

Re: test photo

Post by insitu_az »

I guess that makes sense. It is a pretty interesting issue. Originally when I started looking at the problem it was thought to only be an issue with pictures from iPhone, buy it has been kicking around for a long time and is apparently an issue with almost all cell phone pictures.
In the case of this BB software, it is not reading the EXIF data from the photo, your phone and newer operating systems on PC or Mac do read the EXIF. So, the image appears correctly on the PC, Mac, or phone, but may be rotated 90 degrees when it is posted on the board.

Here is a basic look at the issue. https://www.howtogeek.com/254830/why-yo ... y-rotated/

Unfortunately there is no finalized software update to fix it for phpBB. I have been looking at a Beta fix, but am a bit worried about using it. I found, that on my computer, if I download the picture, then just save it in Paint under the same name without any other changes (the original version of Paint, not the 3D one), that it fixes the problem. I am continuing to review options on it, but coding a fix is not in my skill set. :lol:
User avatar
insitu_az
Site Admin
Posts: 215
Joined: Wed May 22, 2019 7:12 pm
Location: East Mesa

Re: test photo

Post by insitu_az »

I have now turned on the "create thumbnail" option for posting files. It presents the photos in a smaller thumbnail format which expands to original size when clicked. It is interesting, because the thumbnail view actually reads the EXIF file, but the fix has not been extended to the full size photo at this time. Saving in paint again seems to reorient the photo to the desired appearance.

IMG_4260.JPG
Original photo


IMG_4260-new.jpg
Same photo after I saved it in Paint. No changes, just saved it.
User avatar
insitu_az
Site Admin
Posts: 215
Joined: Wed May 22, 2019 7:12 pm
Location: East Mesa

Re: Photo rotation - Unable to read EXIF data

Post by insitu_az »

Installed an early version (alpha release) of an EXIF image rotation extension on our staging board. It has been running for quite a while with no issues. I uploaded a few photos, some with rotation, and some without. All seem to be displaying correctly now.

I have installed the same fix to our our main board now. Looks good, and hopefully we can put this issue to bed.

- Guy
User avatar
L320-Dale
Posts: 341
Joined: Thu May 23, 2019 6:25 pm
Location: North Gilbert

Re: Photo rotation - Unable to read EXIF data

Post by L320-Dale »

Impressive Guy, Nice job!

Dale
Dale - Gilbert, Az
1965 L320 - Bamboo Tan / 1972 1200 - Sun-light Blue / 1970 240Z - Silver
User avatar
insitu_az
Site Admin
Posts: 215
Joined: Wed May 22, 2019 7:12 pm
Location: East Mesa

Re: Photo rotation - Unable to read EXIF data

Post by insitu_az »

Thanks. I hadn't seen this issue before, but I guess we mostly were linking our photos from hosting services so it just didn't show up. I'm keeping an eye on it to be sure it doesn't cause any problems with uploading other photos.
- Guy
Post Reply