Page 1 of 1

Sideways Photos

PostPosted: Wed Aug 21, 2019 7:45 pm
by attackhedgehog
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

Re: Sideways Photos

PostPosted: Sun Sep 22, 2019 10:59 pm
by prog99
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.

Re: Sideways Photos

PostPosted: Fri Sep 27, 2019 11:24 pm
by Marty_JG
exiftool -Orientation= /target/dir/or/File

You can then use any photo viewer to rotate.

Re: Sideways Photos

PostPosted: Sun Sep 29, 2019 5:37 pm
by Paul Webster
testing ....


Walkhighlands.JPG

Re: Sideways Photos

PostPosted: Sun Sep 29, 2019 5:37 pm
by Paul Webster
hopefully iphone pics should now be correctly oriented

Re: Sideways Photos

PostPosted: Sun Sep 29, 2019 5:46 pm
by Paul Webster
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.

Re: Sideways Photos

PostPosted: Sun Sep 29, 2019 6:40 pm
by poppiesrara
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

Re: Sideways Photos

PostPosted: Sun Sep 29, 2019 6:44 pm
by Paul Webster
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

Re: Sideways Photos

PostPosted: Sun Sep 29, 2019 6:47 pm
by poppiesrara
Quick work, thanks! Yes, back to normal now. :clap:

Re: Sideways Photos

PostPosted: Mon Sep 30, 2019 6:19 pm
by JFT_96
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

Re: Sideways Photos

PostPosted: Mon Sep 30, 2019 9:51 pm
by Paul Webster
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.

Re: Sideways Photos

PostPosted: Tue Oct 01, 2019 11:36 am
by JFT_96
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

Re: Sideways Photos

PostPosted: Tue Oct 01, 2019 1:27 pm
by Paul Webster
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.