|
Forum Announcements and Comments Announcements about forum changes will be made in this section. All new threads here now require moderator approval. |
|
Thread Tools |
24th Nov 2016, 7:28 pm | #1 |
Administrator
Join Date: Dec 2002
Location: Cardiff
Posts: 9,060
|
Image rotation when uploading
I have just made a change to the image upload code to read the EXIF orientation data from images and rotate them accordingly before resizing them.
This should mean no more photos appearing with the wrong rotation when uploaded as attachments or in albums etc. If you have had this problem before please upload the offending images again (if you have them) in this thread as a test. Obviously it needs to be the original ones from your phone or camera, not edited ones. It would be interesting to see how well or otherwise this works, as the amount of testing I could do is limited. |
24th Nov 2016, 7:40 pm | #2 |
Heptode
Join Date: Apr 2003
Location: Cornwall, UK.
Posts: 985
|
Re: Image rotation when uploading
Hi Paul.
I'll upload a couple of images of the 'Genalex' electric clock that I posted in November 2014 that rotated during upload. Let's see what happens. Well, that worked fine!
__________________
The honesty of imperfection.......... Last edited by thermionic; 24th Nov 2016 at 7:41 pm. Reason: Comment on successful outcome! |
25th Nov 2016, 12:42 am | #3 |
Administrator
Join Date: Dec 2002
Location: Cardiff
Posts: 9,060
|
Re: Image rotation when uploading
It seems to have added black to the right side so may need more tweaking. I will have a further look in the next couple of days to sort that.
|
25th Nov 2016, 9:38 am | #4 |
Administrator
Join Date: Dec 2002
Location: Cardiff
Posts: 9,060
|
Re: Image rotation when uploading
Thank you to Simon (thermionic) for emailing me the offending images. I think it is now sorted.
Note that it will only correct the rotation of images if they are large enough to require resizing anyway, however as images from almost any smartphone or digital camera will be over that limit so this shouldn't be an issue. Let's see how it works over the next few days. |
25th Nov 2016, 5:36 pm | #5 |
Nonode
Join Date: Apr 2012
Location: Worcestershire, UK.
Posts: 2,039
|
Re: Image rotation when uploading
Okay, let's try this one (previously uploaded to the FSoW thread 15/11/16) ....
__________________
"What a depressingly stupid machine." [Marvin: HHGTTG] |
25th Nov 2016, 5:37 pm | #6 |
Nonode
Join Date: Apr 2012
Location: Worcestershire, UK.
Posts: 2,039
|
Re: Image rotation when uploading
Yep - worked just fine.
Nice one, Paul ... thank you!
__________________
"What a depressingly stupid machine." [Marvin: HHGTTG] |
25th Nov 2016, 7:21 pm | #7 |
Guest
Posts: n/a
|
Re: Image rotation when uploading
One thing I would like is a bit more resolution for images, so often a printed page posted is unreadable, it is usually possible to de cypher it, but that's no fun.
|
25th Nov 2016, 9:19 pm | #8 |
Administrator
Join Date: Dec 2002
Location: Cardiff
Posts: 9,060
|
Re: Image rotation when uploading
For things like diagrams and documents it is best to store them full size image in a ZIP file, or create a PDF file. There is a higher maximum file size limit and no automatic resizing.
I don't want to increase the maximum size for images due to the amount of disk space having almost every image attachment larger would take up. |
25th Nov 2016, 9:48 pm | #9 |
Dekatron
Join Date: Aug 2013
Location: Wigan, Greater Manchester, UK.
Posts: 9,427
|
Re: Image rotation when uploading
Not Radio related but try as a test.
Frank That works ok, delete this post if you wish, just wanted to test. Last edited by Nuvistor; 25th Nov 2016 at 9:50 pm. Reason: Delete if required. |
25th Nov 2016, 9:54 pm | #10 |
Dekatron
Join Date: Feb 2005
Location: West Cumbria (CA13), UK
Posts: 6,118
|
Re: Image rotation when uploading
It may not be related to vintage tech, but does shift the balance a little from the usual feline fare.
__________________
Mending is better than Ending (cf Brave New World by Aldous Huxley) |
26th Nov 2016, 12:28 pm | #11 |
Dekatron
Join Date: Feb 2007
Location: Leominster, Herefordshire, UK.
Posts: 16,526
|
Re: Image rotation when uploading
__________________
....__________ ....|____||__|__\_____ .=.| _---\__|__|_---_|. .........O..Chris....O |
26th Nov 2016, 9:33 pm | #12 |
Administrator
Join Date: Dec 2002
Location: Cardiff
Posts: 9,060
|
Re: Image rotation when uploading
I'll leave this thread open for a few more days, but just for people to report any problems with this change now please.
If you do have problems I will probably PM you and ask you to email me the offending image(s) to test with. |