Orientation of images uploaded is wrong


(Robert McIntosh) #1

Continuing the discussion from Mobile image upload turns sideways:

… because that has sadly been closed.

We are seeing a lot of similar issues - do we know if this is specific to a particular device? I can ask all my members who have experienced it but if it is known issue and I can update them it would be easier.

Unfortunately we upload a lot of photos (images of wine labels) so it will happen a lot on our site

here are some examples:


(Jeff Atwood) #2

What version of Discourse are you on? This was covered in the topic you linked to.


(Robert McIntosh) #3

I’m running 1.8.10 (latest stable I believe)

I read that thread and don’t see a resolution - I see that it was apparently ‘ported’ to stable but I’m still getting the issue


(Jeff Atwood) #4

You need to be on 1.9 for the complete fix. Unless you can repro the problem here or on try.discourse.org


(Robert McIntosh) #5

I can’t, sadly. We’re on discoursehosting so reliant on them to update the version

So I have to wait for 1.9 for the fix?


(Robert McIntosh) #6

I can save and re-upload the image from my site (see below), but it is not MY image so relying on the user. I am quite sure it is correctly oriented for him so if the EXIF was stripped in HIS upload process, then I will not have it here.

I can see if I can get him to confirm and send me the original

419cd7f67c11d7024cd4024141f7c357692c6525_1_375x500


(Jeff Atwood) #7

I think so, unless you can repro the issue on try.discourse.org — grab your phone snap some pics in whatever orientation then press upload.

Last time this was reported, it was users taking pictures in unusual orientations (phone upside down, etc) and needing to rotate them on their devices.


#8

I would contact them as they are very helpful and if you are on a business plan I believe it is they can upgrade you to test passed release @michaeld @RGJ


(Robert McIntosh) #9

I was sent the original image via email and when I upload it myself it is still incorrectly oriented but it shows correctly on his iphone and when I preview the image on my MacBook

This was taken on an iPhone 8 running iOS 11.1.1

It might be something about the iPhone defaulting to ‘live’ images and when you directly upload one of these to discourse it is possible that it is not reading it correctly

However, I have tested the same image on try.discourse and it was correctly oriented there, so I assume that the fixes in 1.9.0 will resolve this issue for my site … I just need to wait for it to go live


(Michael - DiscourseHosting.com) #10

@thirstforwine You can indeed get an update to 1.9 beta if you want to, just drop me a PM to confirm!


#11

Hello.
Is this still an issue for others on 1.9.x ? (On our forum its 1.9.1)

It is for us.

I tested here and all seems fine Image click to zoom test / rotation test - discourse - Demo

If i post the last picture on our forum it is rotated.


(Jeff Atwood) #12

Unless you can repro at https://try.discourse.org then no, it is not.


#13

I cant.

Then its so strange its a problem on our forum


(Jeff Atwood) #14

Looks like you guys need to update to latest then.


#15

If i check with ‘view page info’ i get
Discourse 1.9.1 - GitHub - discourse/discourse: A platform for community discussion. Free, open, simple. version b9bc27e539a7229f1f23c35ffa0820804d38c224

So this is not the latest ?

Edit: It seems it is the latest version (excluding 2.0.0beta1)
So i’m / we’re a little lost :blush:


(Michael - DiscourseHosting.com) #16

Horlogeforum is running with us. It’s on latest stable. In our experience this was fixed in 1.9 beta 5-or-something and later, so this should not be a problem anymore. We’ll investigate this and inform the staff.


#17

Oh. thank you so much !
And @codinghorror thank you too !

:pray:


(Robert McIntosh) #18

Well, I thought it was solved for us too with 1.9.0 but we’re also with @michaeld and this popped up 3 days ago:


(Jeff Atwood) #19

Take it up with your hosting provider, unless you can repro at https://try.discourse.org right now, today, this is not a bug. Closing this topic.


(Jeff Atwood) #20