Click here to return to the home page.
Image of a road.
Who's Online Now
3 members (Image, sbarracl, JohnHarris), 186 guests, and 54 robots.
Key: Admin, Global Mod, Mod
Top Posters(30 Days)
+8Rich 98
Newest Members
Scot_SJI, Jimmers, Breen60, Davidmog, Stevecarr
9,596 Registered Users
Newest Topics
Goodbye Dolly
by Clipper - 25/08/26 09:57 PM
Hot start .... vapour lock
by Pittsartist - 25/08/26 08:00 PM
Immobiliser
by Clipper - 25/08/26 12:42 PM
Monza style fuel cap
by Lionel Mandrake - 25/08/26 09:01 AM
UK car tax on CX Plus Four - bit of a rant
by Neil A - 25/08/26 07:33 AM
tow bar
by G Walker - 24/08/26 06:52 PM
Ez Carlift Now Sold
by IMHO - 24/08/26 02:35 PM
Latest Photos
tow bar
tow bar
by G Walker, August 24
Prescott double anniversary
Prescott double anniversary
by CooperMan, August 18
Air Crash Sites: Cairngorms
Air Crash Sites: Cairngorms
by RedThree, August 13
Four-seater luggage rack
Four-seater luggage rack
by Soleng, August 9
New M3W orange 2012
New M3W orange 2012
by jejemek, August 7
Forum Statistics
Forums39
Topics49,836
Posts837,249
Members9,596
Most Online1,063
Jun 14th, 2026
Today's Birthdays
FitFourfour
Thread Like Summary
Alistair, bmgermany, Graham, G4FUJ, RichardV6
Total Likes: 7
Original Post (Thread Starter)
by RichardV6
RichardV6
For some time now TM folk using the tm-img image hosting site have found that submitted portrait aspect photo's display in a landscape aspect. This has the effect of horizontally stretching the image with the greater aspect ratio of submitted portrait image increasing the stretch.

I also use the free imgbb for picture hosting, the website of which appears very similar, i.e. same software. This doesn't display this annoying trait so tm-img could simply require a setting change maybe thinking

Would be grateful for the benefit of other TM users if the tm-img team could look into this issue.
Liked Replies
by Hamwich
Hamwich
UPDATE: I think I've spotted what's going on. There's a maximum image size specified of 1600 x 1080, meaning any uploaded pictures will be downscaled to this size in a proportion of 1.48 to 1.

It makes sense to do this to prevent the server space being gobbled up, but modern phone cameras are producing much larger picture sizes, a portrait picture on an iPhone 16 is 4284 x 5712 for example, which is a proportion of 1.21 to 1

So what might be happening is that when the pictures are being downscaled, the proportions for portrait pictures that exceed the limit are being miscalculated and giving the 'squashed' result.

We can remove this restriction so that photos are not downscaled, but this will hugely impact space requirements as pictures will go from around 500kb or so to 3MB or more, which would have a significant cost implication for running the site.

What I can do is to increase the proportions of the restricted dimension 1.2 to one, or 1600 x 1400 to see if that will have the right effect without resulting in huge image sizes on the server

I'll check with Peter, the site owner, to see if he's happy with this approach.
2 members like this
by Hamwich
Hamwich
Originally Posted by Grumpy2
for info, here's the same image loaded via my Mac (from Iphone) in jpeg format

[Linked Image]

This image is held in tm-img with dimensions 1440 x 1080 for the original, and the medium image you posted is 500 x 375 (so the reduced size is proportionate to the original)

Could I ask you to check what the image size is in your phone and Mac?

Obviously something strange is going on when some photos are uploaded, but I can't for the life of me figure out what!
1 member likes this
by Alistair
Alistair
Trying to work out who we could "fix" if we loaded the canon's. Gotta have a goal in life eh?

I don't think it is working correctly it is making me look fat.......oh, whoops.
1 member likes this
by Image
Image
[Linked Image]

Random last pic off my phone cam ... just crawled out from under the Landy where I'd spent a few unpleasant hours wrestling with terminally rusted bolts while half the dust in Scotland rained down in my face ... suitably filthy for a working-lad like me ... Horses rushed over and started licking me .. however they soon tired of that so I expect I'll still have to have a shower 😆

K

Ps ... removing the rear tub to replace the loadbed supports after 30 years of neglect and living outside
1 member likes this
by Hamwich
Hamwich
Oh bugger, it wasn't that then. Back to the drawing board.

Looks like currently the only way to guarantee a clean upload is to edit and save the image before uploading.

I'll carry on looking.
1 member likes this
by Ian Wegg
Ian Wegg
Ok, more information.

Using EXIFdata.com to examine the files, my original portrait file on the phone has these properties.


Image Settings
--------------
Orientation: right-top

Image Properties
----------------
Image Width: 4080px
Image Height: 3060px



The image on tm-img has this:

Image Settings
--------------
Orientation: Undefined

Image Properties
----------------
Image Width: 1600px
Image Height: 1200px


The image after passing through Windows has this:

Image Settings
--------------
Orientation: N/A


Image Properties
----------------
Image Width: 741px
Image Height: 989px




Note that although portrait, the original file is wider than it is high.
My conclusion is that the phone stores all files as landscape and uses the orientation flag to display them the correct way up.
Windows will recognise the file as being turned to landscape and will save it with the correct height:width ratio.
TM-IMG gets confused!

I can see that a mobile device - phone or tablet - will need to know the orientation so that it can display properly no matter which way up the device is being held. A laptop / desktop machine does not need this.
1 member likes this
Powered by UBB.threads™ PHP Forum Software 7.7.5