Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Fixing the Orientation of Uploaded Photos in my Forum
Avatar
Ryan Collins
Member
Free Members
sp_UserOfflineSmall Offline
May 1, 2016 - 9:17 am
Hi Team,
 
I have an assistant who helps me with technical work on my website. I sent her this issue but she thinks I will need to hire a PHP developer to write a long custom code to fix this issue.
 
I'm curious if you have an easier solution.
 
Could you please take a look at this video and let me know what you think?
 
 
And if you still have admin logins on record for myfishingcapecod.com, then you can click this link to view an actual example of the issue in my forum.
 
Cheers!
 
Ryan
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 1, 2016 - 12:45 pm

you talk about align and orienting...  do you mean you want to rotate the photo?? 

if so, there is no way to do that automatically...  there is no way to know what the desired rotation of the image is... if the camera is turned 90 deg to take the picture, you may have wanted a landscape...  what you really probably want is some sort of image tools that would allow users to rotate images as desired... which as you know, we dont have...  can add to the wishlist..

if something other, please elaborate...

Avatar
Ryan Collins
Member
Free Members
sp_UserOfflineSmall Offline
May 3, 2016 - 9:11 am

Yes what I end up doing is manually editing the post and manually rotating the photo.

Here is an example.

aligned-picture.jpgImage Enlarger

This happens pretty regularly.

As you can see the user took a photo holding his camera in a vertical position, but it was flipped horizontal when he uploaded the photo.

I often receive messages afterwards from users who ask why the photo was flipped, and they request that I please fix it.

When I had my Wordpress coder look into this issue, she replied with...

Unfortunately this request or task of yours is already Out of Scope.

A custom code needs to be added into your site which will be a long one because a lot of process will be considered to achieve the desired output. It seems that you need to hire a PHP developer that will be developing the function for you.

Just figured I would let you guys know. If you can think of a fix it would save me a ton of photo editing time.

Thanks for looking into this! Much appreciated.

Cheers,

Ryan

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
May 3, 2016 - 9:44 am

Hey Ryan,

I've noticed in Windows 10 (can't remember if it was an issue in Windows 8) Windows thinks it's a good idea to automatically orientate your photos in file explorer and when looking at them individually in Windows 'Photo' app. Could this be leading you and some of your users to assume the photo is already correctly orientated before uploading?

It might be worth opening one of the affected photos in a decent editor (not MS paint, it might very well do the same thing!) and see if the photo is actually correct or if it's actually on it's side.

I've done a few tests and every time, although the photo looked fine in explorer it was incorrect after uploading. Every photo I manually rotated uploaded just fine. All SP (And WP I believe) does is attach the image that's uploaded, SP definitely doesn't rotate anything.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 3, 2016 - 10:16 am

This is not something I can reproduce either.

At the risk of embarrassing myself and showing my ignorance - I think I am correct in saying that the major image file formats store the actual data - byte for byte - from the top left to the bottom right of an image. Plus there is some header data to tell the image interpreter, amongst other things, the width and height.

Modern digital cameras and smartphones work out the orientation automatically and create the file as required.

When an image file is imported into an app like SP the file uploader takes that header data to ascertain the height, width and size of an image. As Ike said above - it makes no changes to the image unless you have the resize option on which just makes it smaller.

So - if we assume i am right about this - it means that the image being uploaded is actually orientated that way in the original file. This begs the questions what equipment and software was used to take the image, store the image and 'feed' the image to our uploader.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626