1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Not a Bug Images sideways

Discussion in 'Resolved Bug Reports' started by billybatz9, Jul 31, 2013.

  1. billybatz9

    billybatz9 Active Member

    I dont know if this is a bug or not....

    Everytime I try to upload an avatar from my phone (iphone).... the image gets uploaded sideways, not straight up.
  2. FredC

    FredC Well-Known Member

    IOS devices have always had that quirk.. Im certain it has nothing to do with XF and everything to do with Apple..
  3. billybatz9

    billybatz9 Active Member

    okay...very weird why apple does that! (n)
  4. billybatz9

    billybatz9 Active Member

    what about other phones? Anyone have any problems with their images getting uploaded from other phones?
  5. Brogan

    Brogan XenForo Moderator Staff Member

    This is not a bug, it is due to the orientation the device was in when the image was taken.
  6. Mike

    Mike XenForo Developer Staff Member

    It's general exif rotation stuff - which we don't have support for. The image is actually oriented the way you see it, it's just rotated when displayed.
  7. billybatz9

    billybatz9 Active Member

    okay... thanks guys
  8. FredC

    FredC Well-Known Member

    Android devices seem to handle this just fine.. I take pictures from my android daily and post them to my forum with no need to rotate anything and i take 99% of my pictures in landscape orientation... However that doesnt mean much because apparently my forum does a lot of magical things that nobody else s does.
  9. CyberAP

    CyberAP Well-Known Member

    The same thing stands for video by the way, it's also rotated with meta information, the video itself always has the same orientation no matter how you're recording.
  10. Rudy

    Rudy Well-Known Member

    I had reported this issue myself awhile ago.

    Since the images go through GD or ImageMagick, I would think there is some option when processing a file that would let either of these rotate the image to its proper orientation.

    I know it's not a bug in XF per se, but it is a serious issue since unfortunately, many are accessing our big board and other forums of mine with ios products and many of their images are oriented incorrectly. Part of the key to adopting a "responsive" view is to provide the desktop experience on a mobile device, and if a user can't upload an image they've just taken, that defeats the purpose of having image attachments for many of our users.

    This might be relevant in ImageMagick:


    ...provided they implement it correctly, and ios is not doing something non-standard.
    Last edited: Aug 11, 2013
  11. Rudy

    Rudy Well-Known Member

    That didn't work for me--on my Thunderbolt, any image I'd taken in landscape mode was oriented on its side. A shame, since most of my pics were that way from a trip I took. But that was on Gingerbread, not Jelly Bean. (I've since upgraded the T-Bolt to ICS, so I might try it again.) Could be they fixed something in the OS?
  12. Rudy

    Rudy Well-Known Member

    Oh...question: which version of XF are you using? I wonder if it was somehow fixed in v1.2 vs. v1.1 .
  13. AndyB

    AndyB Well-Known Member

  14. Rudy

    Rudy Well-Known Member

    Sweet! Thanks!

    We do have ImageMagic on the server, so your script should work fine. However, I just hope exec will run it, as our web server runs as user "nobody" and I don't know if it would throw an error or not. Good to see a fix, regardless!

    We do not yet have IM installed via PECL for use in PHP. I don't know if I would gain any advantage currently by having it installed, although I might be able to "hack" the compression level to make the image sizes a bit smaller.
  15. AndyB

    AndyB Well-Known Member

    Are you referring to the Avatar compression level? On my forum I hacked it so there's no compression at all.
  16. Rudy

    Rudy Well-Known Member

    No, avatars are fine with us...but the uploaded images are where we are seeing a lot of abuse, and if it helps us save storage space (especially with the thumbnails), it's all good. Not a very high priority item, but it's nice to know it's there if I want to change it.
  17. erich37

    erich37 Well-Known Member

    I know this is not a suggestion-thread...... but giving the user the option to "turn" his Avatar-image by 90 degrees would easily fix this issue.....
  18. Rudy

    Rudy Well-Known Member

    A neat add-on idea might be a small-scale image editor: crop, rotate, lighten and darken, and that's it. But it would be tricky to incorporate it in the middle of the existing upload function.
  19. billybatz9

    billybatz9 Active Member

    using 1.2

Share This Page