LumberJocks

Images from Phone get Rotated

  • Advertise with us

« back to LumberJocks.com Site Feedback forum

Forum topic by DevinT posted 06-11-2021 04:58 PM 355 views 0 times favorited 14 replies Add to Favorites Watch
View DevinT's profile

DevinT

1117 posts in 81 days


06-11-2021 04:58 PM

Ever posted a picture to the site from your phone? Been disappointed that the site rotated it incorrectly?

I’ve been trying to determine a pattern to the issue, and I think I have found it.

When I take a picture on my phone with the intent of posting it to the site, I have found that if you turn your phone into landscape mode with the home button on the right then your picture will not be rotated.

If I take a picture in any other orientation, including:

1. Portrait mode (right-side up or up-side down)

or

2. Landscape mode with the home button the left

Then the picture becomes rotated (to the orientation of landscape with home-button on-right).

Just knowing this has made posting pictures to the site much easier and less stressful. I no longer have to worry about the photo being rotated after posting it and then running to the computer to download it, rotate it, then edit the comment, re-upload the rotated photo, and save the comment.

-- Devin, SF, CA


14 replies so far

View gdaveg's profile

gdaveg

198 posts in 317 days


#1 posted 06-11-2021 05:19 PM

Devin,

Little Black Duck has a blog / forum on how to get pics to come in in the correct orientation. But yours sounds simple and I will try it.

But if you have a picture and need it come in correctly just edit your picture, I use the resize edit command and just make a teensy adjustment in size.

I will get LBD’s post and comeback and add the link.

Here is the link to LBD’s blog on correcting picture orientation. I am grateful for his and your input on this subject. I have my first project post that would benefit from me correcting the photos.

https://www.lumberjocks.com/LittleBlackDuck/blog/129914

-- Dave, Vancouver, WA & Tucson, AZ

View BlasterStumps's profile

BlasterStumps

2010 posts in 1554 days


#2 posted 06-11-2021 05:27 PM

If you import pictures from iphone to a mac mini like this one, just save the picture to desktop, open it in preview and orient it like you want, save it and you’re good to go.

-- "I build for function first, looks second. Most times I never get around to looks." MIke in CO

View DevinT's profile

DevinT

1117 posts in 81 days


#3 posted 06-11-2021 05:34 PM

I only ever have problems from the phone. Putting pictures on a computer first and posting from the computer has always worked. In essence when posting from a computer, what you see is what you get. Only if the picture was posted from a phone does the site rotate them (and only if the orientation was something other than landscape with the home button on the right).

-- Devin, SF, CA

View HokieKen's profile

HokieKen

17874 posts in 2253 days


#4 posted 06-11-2021 07:51 PM

Just a note: there’s no home button on most phones anymore :-)

I’ll add, if you do take it with the phone in some other orientation, you can edit the picture and either crop it slightly or rotate it and then rotate it right back and it will be oriented correctly when you upload it.

-- I collect hobbies. There is no sense in limiting yourself (Don W) - - - - - - - - Kenny in SW VA

View fivecodys's profile

fivecodys

1739 posts in 2751 days


#5 posted 06-11-2021 09:19 PM

Hi Devin,
I have got in the habit of opening all my posting photos in Microsoft Paint before trying to use them for posting.
I crop, resize, and rename them before re-saving.
This completely solved the annoying ‘flopping’ issues I was having.
Now I can take them in whatever orientation works best at the moment.
Most PC’s come with Paint so it was a cheap solution.

I hope this is helpful.

-- A bad day woodworking is still better than a good day working.

View corelz125's profile

corelz125

3003 posts in 2091 days


#6 posted 06-12-2021 01:20 AM

That’s my go to with all pics just crop it a small amount and it always works

View corelz125's profile

corelz125

3003 posts in 2091 days


#7 posted 06-12-2021 01:22 AM

Or you can do this to get his feathers ruffled.

View Sylvain's profile

Sylvain

1273 posts in 3614 days


#8 posted 06-12-2021 11:27 AM

“In essence when posting from a computer, what you see is what you get. “

Not when I import portrait pictures from my (old) Sony Cybershot camera.
They are vertical on the PC screen but turned on LJ.
I have to edit them (with MS Photos [my PC is in French]) : rotate them 90°, rotate them back and save before publishing on LJ.

-- Sylvain, Brussels, Belgium, Europe - The more I learn, the more there is to learn

View GR8HUNTER's profile

GR8HUNTER

8525 posts in 1827 days


#9 posted 06-12-2021 02:23 PM



Or you can do this to get his feathers ruffled.

- corelz125

BAD BOY LMAO :<))))))))))

I hope this helps people post their work better

-- Tony---- Reinholds,Pa.------ REMEMBER TO ALWAYS HAVE FUN :<))

View DevinT's profile

DevinT

1117 posts in 81 days


#10 posted 06-12-2021 02:46 PM

Whatever library they are using seems to read the orientation flag stored in the photo and misreads it, rotating the image incorrectly. Photos that lack an orientation tag do not have the issue. Opening your image and editing it, then saving it eliminates the orientation tag.

These days pretty much all modern cameras add an image attribute to denote how the phone was oriented when the photo was taken, including cameras on phones.

Hell, you don’t even have to edit the photo. Just open it in Preview (Mac) or MS Paint (Windows) and take a picture of the window (Cmd+Shift+4 on Mac, Alt+PrtScrn on Windows). That will make a copy of the image while removing the attribute. If you are Linux/UNIX, you can use “convert” as part of the ImageMagick suite to make a copy lacking the attribute.

I however find it easier just to skip all the nonsense and just rotate the phone to the point that North (the top of the phone) points West. If I simply take the photo in that way, then the image will not become rotated when I post it.

Knowing this, I just take all my photos in that way so I can post whatever, whenever, issue free without extra steps.

-- Devin, SF, CA

View corelz125's profile

corelz125

3003 posts in 2091 days


#11 posted 06-12-2021 04:09 PM

Tony if you know LBD that’s he hates sideways pics. I shared what always works for me to get the pic the correct way.

View pottz's profile

pottz

17490 posts in 2099 days


#12 posted 06-12-2021 11:44 PM



Or you can do this to get his feathers ruffled.

- corelz125


oh man your brave.i dont know you,ok!!!!

-- working with my hands is a joy,it gives me a sense of fulfillment,somthing so many seek and so few find.-SAM MALOOF.

View GR8HUNTER's profile

GR8HUNTER

8525 posts in 1827 days


#13 posted 06-13-2021 12:03 AM


Or you can do this to get his feathers ruffled.

- corelz125

oh man your brave.i dont know you,ok!!!!

- pottz

BAHAHAHAHAHAHAHHAHAHAHA :<)))))))

-- Tony---- Reinholds,Pa.------ REMEMBER TO ALWAYS HAVE FUN :<))

View Dave Polaschek's profile

Dave Polaschek

7653 posts in 1697 days


#14 posted 06-13-2021 02:12 AM

Whatever library they are using seems to read the orientation flag stored in the photo and misreads it, rotating the image incorrectly. Photos that lack an orientation tag do not have the issue. Opening your image and editing it, then saving it eliminates the orientation tag.

There are two orientation flags, one defined in the JFIF standard, and one in the APP0 (or APP2) set of EXIF data. The library used here reads the old one (in the JFIF portion) and clobbers the other. Modern phones write the orientation to the APP section of the EXIF data.

It’s fairly easy to fix the code, but nobody touches the code here.

So crop your photo a smidge, and then it’ll work. Or post them sideways and watch LBD have a fit.

https://www.youtube.com/watch?v=lxB57TtX27I

-- Dave - Santa Fe

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