# Avatar doing a 90 degree rotation

**URL:** https://meta.discourse.org/t/avatar-doing-a-90-degree-rotation/30983
**Category:** Site feedback
**Created:** [July 11, 2015, 12:46pm UTC](https://meta.discourse.org/t/avatar-doing-a-90-degree-rotation/30983 "2015-07-11T12:46:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [July 11, 2015, 12:46pm UTC](https://meta.discourse.org/t/avatar-doing-a-90-degree-rotation/30983/1 "2015-07-11T12:46:52Z")

</div>

Yo @etewiah, how’re you doing that?

 ![](https://global.discourse-cdn.com/meta/original/3X/3/4/345c5f4c17f180d9d9f4a3b6e761fa78fffd4bda.png)

---

<div class="post-metadata">

### Author: ![accalia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/accalia/32/48626_2.png) [@accalia](https://meta.discourse.org/u/accalia)
#### Post date: [July 11, 2015, 2:20pm UTC](https://meta.discourse.org/t/avatar-doing-a-90-degree-rotation/30983/2 "2015-07-11T14:20:20Z")

</div>

I haven’t taken a look too carefully but i think it’s some tomfoolery with EXIF data, or similar metadata to specify the 90 degree rotation, that metadata is then lost when the avatar is resized by discourse, reverting the image to the actual on disc orientation.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 11, 2015, 3:36pm UTC](https://meta.discourse.org/t/avatar-doing-a-90-degree-rotation/30983/3 "2015-07-11T15:36:14Z")

</div>

I haven’t looked at that specific image, but we do [fix the orientation of the image](https://github.com/discourse/discourse/blob/bfb4dc0055d4f0edbb1f5c4e1b0cb679e3c74ce5/app/models/upload.rb#L147) **before** we remove all of the EXIF metadata.

---

<div class="post-metadata">

### Author: ![etewiah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/etewiah/32/2527_2.png) [@etewiah](https://meta.discourse.org/u/etewiah)
#### Post date: [July 13, 2015, 7:29am UTC](https://meta.discourse.org/t/avatar-doing-a-90-degree-rotation/30983/4 "2015-07-13T07:29:34Z")

</div>

Ha haa - well spotted. Its not anything clever I did - not deliberately anyway 😉

@accalia’s explanation seems to make sense - I think I did have to rotate the image when I uploaded it.
