# Images Rotate Themselves

**URL:** <https://discourse.processing.org/t/images-rotate-themselves/23015>\
**Category:** Coding Questions\
**Created:** [August 3, 2020, 2:30pm UTC](https://discourse.processing.org/t/images-rotate-themselves/23015 "2020-08-03T14:30:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AngryPig](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@AngryPig](https://discourse.processing.org/u/AngryPig)\
**Post date:** [August 3, 2020, 2:30pm UTC](https://discourse.processing.org/t/images-rotate-themselves/23015/1 "2020-08-03T14:30:30Z")

</div>

I was working on a larger project and noticed that every time I try import a photo that I rotated in Windows, it rotates it back. I have made a basic example with the same photo to test it and it still occurs. Does anyone know what might be causing this? This is in Processing 3.

```auto
void setup() {
 size(500, 500);
  PImage photo;
 photo = loadImage("DSCN4885 Vert.JPG");
 image(photo, 0, 0);
}

```

To reproduce, try the above code, find a photo in Windows, right click and select rotate then copy and paste into data folder of sketch

---

<div class="post-metadata">

**Author:** ![qewer3322](https://avatars.discourse-cdn.com/v4/letter/q/e19adc/32.png) [@qewer3322](https://discourse.processing.org/u/qewer3322)\
**Post date:** [August 3, 2020, 3:05pm UTC](https://discourse.processing.org/t/images-rotate-themselves/23015/2 "2020-08-03T15:05:47Z")

</div>

It displays the rotated image on me. Windows 10.

---

<div class="post-metadata">

**Author:** ![AngryPig](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@AngryPig](https://discourse.processing.org/u/AngryPig)\
**Post date:** [August 3, 2020, 3:47pm UTC](https://discourse.processing.org/t/images-rotate-themselves/23015/3 "2020-08-03T15:47:09Z")

</div>

So I just did some research into how rotation is stored in photos and it appears Processing uses the Exif info instead of the current info like in Windows photoviewer and explorer
