LumberJocks

Image orentation

  • Advertise with us

« back to Coffee Lounge forum

Forum topic by GaryCN posted 01-20-2019 12:00 AM 577 views 0 times favorited 21 replies Add to Favorites Watch
View GaryCN's profile

GaryCN

407 posts in 4262 days


01-20-2019 12:00 AM

Topic tags/keywords: question

Maybe someone can explain how image orientation occurs here. I can upload an image with the correct orientation when viewed on my PC and then when it is posted on lumberjocks it ends up flipped sideways. This is enough to drive anyone crazy. Then once posted there is not an option to rotate it correctly.

-- Quando Omni Flunkus Moritati


21 replies so far

View SuperCubber's profile

SuperCubber

1069 posts in 2612 days


#1 posted 01-20-2019 02:11 AM

If taken with an iPhone/iPad/Android device:
1. Take your photo.
2. Open the Photos App to view your photo.
3. Click “Edit” and crop it ever so slightly.
4. Save the photo.
5. Post the photo to LumberJocks.

If you have another mobile device, the same process may work, but I can’t confirm that. Otherwise, put them on a computer first, and that will solve your problem.

-- Joe | Spartanburg, SC | "To give anything less than your best is to sacrafice the gift." - Steve Prefontaine

View anthm27's profile

anthm27

679 posts in 1438 days


#2 posted 01-20-2019 02:12 AM

Interesting, I often wonder why there is so many pics uploaded that are the wrong orientation.
I dont know the answer. I have found though on my computer the LJs website works differently with different browsers.
I find chrome is the only browser that works properly, explorer doesn’t seem to work well at all.
Cheers
Anthony

View CaptainKlutz's profile (online now)

CaptainKlutz

1089 posts in 1822 days


#3 posted 01-20-2019 02:38 AM

Image orientation is thorny issue. There is NOT ONE solution that works for everyone as there are too many different camera’s saving images, on too many different OS, and too many ways for browsers to display images.

Root of problem is what is stored in hidden EXIF/XMP picture data. If you get rid of the orientation data stored in this hidden file, then images will be displayed just like you see them, and not how picture was taken.

You read can about editing EXIF rotation data many places across the WWW, such as these random threads grabbed from Google search:
https://www.howtogeek.com/254830/why-your-photos-dont-always-appear-correctly-rotated/
https://www.howtogeek.com/203592/what-is-exif-data-and-how-to-remove-it/
https://photographylife.com/how-to-delete-exif-data
https://stackoverflow.com/questions/37432580/how-to-remove-exif-data-from-image-but-keep-the-orientation

If you use MickySoft Windows OS and have Office installed, one solution is use Microsoft Office Picture Manager. It has basic editing/resizing tools, and it removes the built-in rotation information; so when picture is edited (crop/resized/rotate) and then saved, it appears on LJ (or another site) exactly how you saved it.

YMMV

PS – If you value your online anonymity, highly suggest that you remove all personal information from your photos before posting in any online forum. In case you aren’t aware, the hidden information can/will contain the GPS location of photo, and device information used for picture taking.
So unless you want whole world to know where you live, and what model phone needs to be hacked to take over your personal data; REMOVE all hidden data.

-- I'm an engineer not a woodworker, but I can randomly find useful tools and furniture inside a pile of lumber!

View GaryCN's profile

GaryCN

407 posts in 4262 days


#4 posted 01-20-2019 01:04 PM

Thank you SuperCubber, that worked on my iPhone just cropped it a little.

-- Quando Omni Flunkus Moritati

View Smitty_Cabinetshop's profile

Smitty_Cabinetshop

16094 posts in 2946 days


#5 posted 01-20-2019 01:21 PM

Gary, another option is posting straight from iphone to LJs by taking pic in landscape mode mode, home button to the right. No edit needed then,

-- Don't anthropomorphize your handplanes. They hate it when you do that. -- OldTools Archive --

View GaryCN's profile

GaryCN

407 posts in 4262 days


#6 posted 01-20-2019 01:27 PM



Gary, another option is posting straight from iphone to LJs by taking pic in landscape mode mode, home button to the right. No edit needed then,

- Smitty_Cabinetshop

That is probably why some of mine post-OK and others don’t, the crop suggestion did work for the last one that turned sideways.

-- Quando Omni Flunkus Moritati

View GaryCN's profile

GaryCN

407 posts in 4262 days


#7 posted 03-14-2019 11:31 PM

Still issues on this site, I just posted 5 or six images on Scroll Saw Village every one had the correct orientation, The same ones here do not. Sorry but until this is corrected a head tilt will be required.

-- Quando Omni Flunkus Moritati

View Richard's profile

Richard

11274 posts in 3360 days


#8 posted 03-18-2019 01:41 AM

The same ones here do not. Sorry but until this is corrected a head tilt will be required. LOL…

-- Richard (Ontario, CANADA)

View Andybb's profile

Andybb

1856 posts in 931 days


#9 posted 03-19-2019 12:06 AM

If using an iphone just hold it horizontally/wide/landscape or however you call it. Never had a problem.

-- Andy - Seattle USA

View Andybb's profile

Andybb

1856 posts in 931 days


#10 posted 03-19-2019 12:08 AM



Gary, another option is posting straight from iphone to LJs by taking pic in landscape mode mode, home button to the right. No edit needed then,

- Smitty_Cabinetshop


+1
If using an iphone just hold it horizontally/wide/landscape or however you call it. Never had a problem in 3 years here.

-- Andy - Seattle USA

View GaryCN's profile

GaryCN

407 posts in 4262 days


#11 posted 03-19-2019 11:14 AM

am using an iPhone, but will probly switch to my Sony HX90V at least for this site.

-- Quando Omni Flunkus Moritati

View Cricket's profile

Cricket

2553 posts in 1920 days


#12 posted 03-19-2019 03:01 PM

Sideways Pictures

This happens because the forum software is unable to read the EXIF data that is imprinted on the photo when you take it.

The EXIF data holds a lot of information, which includes orientation of your photo. Many programs are able to read this, and that is why you see it displayed upright in some places, but many others still are not.

This is a good article that explains all of this: https://www.howtogeek.com/254830/why-your-photos-dont-always-appear-correctly-rotated/

The gist of it is, the phones are designed to work like a digital camera. Holding your digital camera flat, in landscape, is the ‘base line’. Developers used this ‘base line’ in the following way for mobile devices:

Apple users: hold your phone with your VOLUME buttons DOWN.

Android users: hold your phone with your HOME button to the RIGHT.

It’s completely against common sense since the volume button is used as a shutter button, so you would think the volume button should point UP! But that is how developers worked it out, so when you hold your phone upright, in portrait, it is the same as turning your digital camera 90 degrees to the side, to take a portrait photo. Since the forum cannot read the data that tells it which way you are holding your phone, it displays plainly from the ‘base line’ – whichever side your volume buttons are on will be the bottom of your photo (so if you take a photo with your volume buttons facing UP on your phone, the photo will display upside down when you upload it here).

There is not currently any plugins or hacks that we’ve come across that can allow the forum to read the EXIF data at this time.

The only way around it is, either hold your phones the way the developers decided you should, OR you can open the photos in an Editing program (not the viewer), and save them in the correct orientation (you might need to rename them, and crop off a pixel or two, to make sure a change is recognized).

Hope that helps!

-- LumberJocks.com Community Manager

View ArtMann's profile

ArtMann

1334 posts in 1144 days


#13 posted 03-19-2019 08:42 PM

In my experience, phone cameras DO NOT behave like normal digital cameras. I am an avid amateur photographer and I have not seen this rotation problem on any of the dozen or so Nikon, Canon, Sony and Panasonic cameras I have owned. Neither does it occur with the 4 or 5 photo editors I have used. It seems to me to be a problem exclusive to phone pictures. It also seems to occur more often with Apple phones than Android.

View Smitty_Cabinetshop's profile

Smitty_Cabinetshop

16094 posts in 2946 days


#14 posted 03-19-2019 08:47 PM

It’s no mystery. Just stubborn or ignorant users. I’ve posted literally THOUSANDS of pics on this site, all taken with iPhones. Take them in landscape mode, home button to the right, and they post fine. Every. Time.

-- Don't anthropomorphize your handplanes. They hate it when you do that. -- OldTools Archive --

View CaptainKlutz's profile (online now)

CaptainKlutz

1089 posts in 1822 days


#15 posted 03-19-2019 09:47 PM



Sideways Pictures

This happens because the forum software is unable to read the EXIF data that is imprinted on the photo when you take it.

- Cricket

Sorry, I have to disagree somewhat:
Inability to read the EXIF doesn’t impact the photo orientation!

True:
If I take a pic with Android phone with top up, the image appears sideways on my PC, and LJ site.
If I rotate my camera properly, the image appears proper orientation on PC and site.

When examine the EXIF data, each pic shows it was from Android and always the SAME sideways orientation. So we have one problem: the EXIF data is not changed when you rotate the phone camera!

WORSE NEWS:
If I DELETE the EXIF data, and upload the images with no changes; nothing changes as the orientation is due to HOW the data was saved in jpg file. The phone camera pixel data was saved in ‘landscape’ mode, and will be displayed as written when EXIF data is missing or ignored. Hence, image will always be rotated regardless of reading the EXIF or not!

If I preview a rotated pic on a PC, and rotate it to proper orientation, Windoz updates the file with rotated pixel data in the new orientation. If the EXIF data exists, It will still not appear on site properly; as the EXIF data says still in ‘landscape’ mode.

ONLY if you update or delete the EXIF rotation, AND rotate the pixel data within the image file; will the image appear the same on every viewer used.

The only solutions are:
1) Always take pics with camera phone in proper position.

2) Rotate the pixel data in the file to preferred orientation, and either update or remove the EXIF.
[This requires wither photo editing software, or couple steps using Windoz PC.]

3) Ignore it and realize that many will ignore your pretty pics and post.

Cheers!

-- I'm an engineer not a woodworker, but I can randomly find useful tools and furniture inside a pile of lumber!

showing 1 through 15 of 21 replies

Have your say...

You must be signed in to reply.

DISCLAIMER: Any posts on LJ are posted by individuals acting in their own right and do not necessarily reflect the views of LJ. LJ will not be held liable for the actions of any user.

Latest Projects | Latest Blog Entries | Latest Forum Topics

HomeRefurbers.com