walkhighlands

How to... guides to Walkhighlands

Sideways Photos

Sideways Photos


Postby attackhedgehog » Wed Aug 21, 2019 7:45 pm

I've been trying to write my first walk report, but all of my photos are sideways. I've been trying to upload them directly from my computer. I tried turning the photo on my computer and reuploading, but it did not fix the problem. Thank you for your help!

Walkhighlands.JPG
Example of sideways photo
attackhedgehog
 
Posts: 3
Munros:1   
Islands:3
Joined: Feb 27, 2019

Re: Sideways Photos

Postby prog99 » Sun Sep 22, 2019 10:59 pm

I've some experience of this on a different site where I wrote the photo upload code. This may be something Paul could sort as I found that some cameras (in particular iPhones) did not embed the correct orientation details in the file.
User avatar
prog99
Munro compleatist
 
Posts: 1118
Joined: Aug 14, 2013
Location: Sunny Edinburgh

Re: Sideways Photos

Postby Marty_JG » Fri Sep 27, 2019 11:24 pm

exiftool -Orientation= /target/dir/or/File

You can then use any photo viewer to rotate.
User avatar
Marty_JG
Backpacker
 
Posts: 390
Munros:6   Corbetts:2
Sub 2000:3   
Islands:3
Joined: Sep 12, 2016
Location: Glasgow

Re: Sideways Photos

Postby Paul Webster » Sun Sep 29, 2019 5:37 pm

testing ....


Walkhighlands.JPG
User avatar
Paul Webster
Site Admin
Walker
 
Posts: 5224
Munros:282   Corbetts:222
Grahams:64   Donalds:39
Sub 2000:113   Hewitts:133
Wainwrights:134   Islands:92
Joined: Jan 6, 2007
Location: Nr Grantown-on-Spey

Re: Sideways Photos

Postby Paul Webster » Sun Sep 29, 2019 5:37 pm

hopefully iphone pics should now be correctly oriented
User avatar
Paul Webster
Site Admin
Walker
 
Posts: 5224
Munros:282   Corbetts:222
Grahams:64   Donalds:39
Sub 2000:113   Hewitts:133
Wainwrights:134   Islands:92
Joined: Jan 6, 2007
Location: Nr Grantown-on-Spey

Re: Sideways Photos

Postby Paul Webster » Sun Sep 29, 2019 5:46 pm

As an extra to this, I've removed the size limits on uploading photos. Hopefully Walkhighlands server can cope with resizing all the pics itself as they are uploaded. If anyone has any problems uploading let me know.
User avatar
Paul Webster
Site Admin
Walker
 
Posts: 5224
Munros:282   Corbetts:222
Grahams:64   Donalds:39
Sub 2000:113   Hewitts:133
Wainwrights:134   Islands:92
Joined: Jan 6, 2007
Location: Nr Grantown-on-Spey

Re: Sideways Photos

Postby poppiesrara » Sun Sep 29, 2019 6:40 pm

Doesn't seem to be working normally for me, Paul - I get this error message and a distorted screen when trying to upload (already resized) photos:

[phpBB Debug] PHP Warning: in file /includes/functions_upload.php on line 283: imagejpeg() expects parameter 1 to be resource, null given
User avatar
poppiesrara
Mountain Walker
 
Posts: 1178
Munros:1   
Donalds:1
Hewitts:301
Wainwrights:214   
Joined: Aug 11, 2010
Location: Leicestershire

Re: Sideways Photos

Postby Paul Webster » Sun Sep 29, 2019 6:44 pm

Sorry, may now be fixed. Could you try again - and if you still get the error, email the pic to me editor@walkhighlands.co.uk
User avatar
Paul Webster
Site Admin
Walker
 
Posts: 5224
Munros:282   Corbetts:222
Grahams:64   Donalds:39
Sub 2000:113   Hewitts:133
Wainwrights:134   Islands:92
Joined: Jan 6, 2007
Location: Nr Grantown-on-Spey

Re: Sideways Photos

Postby poppiesrara » Sun Sep 29, 2019 6:47 pm

Quick work, thanks! Yes, back to normal now. :clap:
User avatar
poppiesrara
Mountain Walker
 
Posts: 1178
Munros:1   
Donalds:1
Hewitts:301
Wainwrights:214   
Joined: Aug 11, 2010
Location: Leicestershire

Re: Sideways Photos

Postby JFT_96 » Mon Sep 30, 2019 6:19 pm

Hi Paul

I've been trying to upload a route and some already resized photos and have been getting this message for the route

[phpBB Debug] PHP Warning: in file /includes/functions_upload.php on line 259: exif_read_data(phpNOuPqh): File not supported

and this message for the photo

[phpBB Debug] PHP Warning: in file /includes/functions_upload.php on line 259: exif_read_data(phprA5Uyh): IFD data bad offset: 0xFFFFFD56 length 0x05DA
User avatar
JFT_96
 
Posts: 381
Munros:73   Corbetts:21
Grahams:37   Donalds:89
Sub 2000:72   Hewitts:188
Wainwrights:214   Islands:8
Joined: Jun 2, 2013
Location: Lochmaben, Dumfriesshire

Re: Sideways Photos

Postby Paul Webster » Mon Sep 30, 2019 9:51 pm

When you say a route, do you mean a gpx file? If so, try again and let me know whether fixed.

If you've a problem uploading an image, please email it to me at editor@walkhighlands.co.uk so I can take a look.

Many thanks for your help.
User avatar
Paul Webster
Site Admin
Walker
 
Posts: 5224
Munros:282   Corbetts:222
Grahams:64   Donalds:39
Sub 2000:113   Hewitts:133
Wainwrights:134   Islands:92
Joined: Jan 6, 2007
Location: Nr Grantown-on-Spey

Re: Sideways Photos

Postby JFT_96 » Tue Oct 01, 2019 11:36 am

Thanks for your help Paul. Sorry it was a gpx file I tried to upload.
I am now getting a screen saying this page isnt working and http error 500 for both the gpx file and the photo. I'll give it another go later on in the day
User avatar
JFT_96
 
Posts: 381
Munros:73   Corbetts:21
Grahams:37   Donalds:89
Sub 2000:72   Hewitts:188
Wainwrights:214   Islands:8
Joined: Jun 2, 2013
Location: Lochmaben, Dumfriesshire

Re: Sideways Photos

Postby Paul Webster » Tue Oct 01, 2019 1:27 pm

Hi JFT

I hear you, but can you email the files you are trying to upload to me?
Other people are writing new reports with gpx and photos, so there may be something specific to your files that I could look into.
User avatar
Paul Webster
Site Admin
Walker
 
Posts: 5224
Munros:282   Corbetts:222
Grahams:64   Donalds:39
Sub 2000:113   Hewitts:133
Wainwrights:134   Islands:92
Joined: Jan 6, 2007
Location: Nr Grantown-on-Spey




Walkhighlands community forum is now advert free

We need help to keep the site online.
Can you help support Walkhighlands and the online community by setting up a monthly donation by direct debit?



Return to Help - how to use the site

Who is online

Users browsing this forum: No registered users and 1 guest