◉RORK LABJP
●ARCHIVE — Since 11/22 you can archive a Rork project instead of deleting it, and bring it back from Archived●PLAY FIX — Fixed: Expo apps built for Google Play losing their Rork AI key, which broke AI features●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 7 days left. Check which model your app calls●SPLASH — Expo users report apps stuck on the splash screen after rolling back to an earlier update●NEW — New: Three clues to check before replying to a "stuck on the splash screen" review●2.5 ROUTE — From 12/1, Gemini 2.5 requests reroute to newer models at new rates. 8 days left●ARCHIVE — Since 11/22 you can archive a Rork project instead of deleting it, and bring it back from Archived●PLAY FIX — Fixed: Expo apps built for Google Play losing their Rork AI key, which broke AI features●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 7 days left. Check which model your app calls●SPLASH — Expo users report apps stuck on the splash screen after rolling back to an earlier update●NEW — New: Three clues to check before replying to a "stuck on the splash screen" review●2.5 ROUTE — From 12/1, Gemini 2.5 requests reroute to newer models at new rates. 8 days left
Articles/Dev Tools
⬡ Dev Tools/2026-06-21Advanced

Your Rork App's Photos Look Sideways Only After Upload — Normalizing EXIF Orientation and Stripping Location Metadata

A photo that looks upright in your app rotates 90 degrees once it hits your server. The cause is the EXIF Orientation tag. Here's how to bake the rotation into pixels and strip location metadata with expo-image-manipulator before uploading.

Rork621Expo237Image UploadEXIFPrivacy10

✦ Premium Article

A user uploads a photo. On their own phone it looks perfectly upright, but the version stored on your server — or shown to another user — is rotated 90 degrees. As an indie developer running image-heavy apps, I have hit this more than once. The first time, a user told me "the photo I uploaded shows up sideways on my friend's screen," and I spent half a day chasing it. The short version: the pixels were never rotated. The rotation lived in a separate place, the EXIF Orientation tag, and the two sides of the pipeline disagreed about whether to read it.

The same structure shows up in apps you build with Rork. React Native's <Image> respects the Orientation tag and renders correctly, but the server you upload to, the image library that resizes it, or a third-party preview often ignore the tag entirely. Today we'll build the piece that prevents all of this: bake the rotation into the pixels and drop the EXIF — including location — before the file is uploaded.

It Looks Right in the App but Tilts Only After Transfer

Start by isolating the symptom. Three observations almost always confirm an Orientation issue:

  1. The same file looks upright inside your app's <Image>
  2. Uploaded to a server and opened in a browser or another library, it is rotated
  3. Portrait shots break far more often than landscape ones

When all three line up, it is the Orientation tag. An iPhone camera, even when held vertically, stores the raw landscape pixels from the sensor and writes "rotate this 90 degrees clockwise when displaying" into the Orientation tag. <Image> reads the tag and shows it correctly; a server that ignores the tag shows the raw, sideways pixels. That is the whole disagreement.

The Cause Is EXIF Orientation — the Pixels Never Moved

The Orientation tag is an integer from 1 to 8 describing a rotation-and-flip combination. In practice you'll meet four of them.

ValueMeaningTypical source
1No rotation (upright)Landscape capture, already normalized
3Rotated 180 degreesPhone held upside down
6Upright after 90 degrees clockwisePortrait capture (most common)
8Upright after 90 degrees counter-clockwisePortrait, opposite way

Value 6 dominates, and every case I was reported was a 6. The key point: when the value isn't 1, the pixels and the display instruction are out of sync. Since your upload target ignores the tag, the most portable fix is to physically rotate the pixels on your side and reset the tag to 1.

✦

Thank you for reading this far.

Continue Reading

What follows includes implementation code, benchmarks, and practical content we hope you'll find useful. This site runs without ads — server and development costs are supported entirely by members like you. If it's been helpful, we'd be truly grateful for your support.

WHAT YOU'LL LEARN
✦You can finally diagnose why a photo looks upright on your device but rotates 90 degrees on your server or a friend's screen, reading it straight from the EXIF Orientation value (1-8)
✦You'll get a working expo-image-picker + expo-image-manipulator implementation that bakes rotation into pixels and removes EXIF before upload
✦You'll be able to stop leaking the GPS location embedded in user photos before the file ever leaves the device
Secure payment via Stripe · Cancel anytime
✦

Unlock This Article

Get full access to the rest of this article. Buy once, read anytime. This site is ad-free — your support goes directly toward keeping it running.

or
Unlock all articles with Membership →
Share

Thank You for Reading

Rork Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

Related Articles

⬡ Dev Tools2026-11-19
New Wallpapers Showed Up Everywhere Except the Filters: Ship the Count and the Category Lists Together
I added 67 wallpapers in one batch. They appeared in the full list and in New, but not under a single category filter, because I had raised the ID limit and forgotten to ship the category lists. Here is a pre-bump check, a client-side way to spot silent fallbacks in an Expo app, and a post-release count against the origin.
⬡ Dev Tools2026-10-30
It runs in development but the iOS Release build dies on launch — checking whether a missing scheme is the cause
In an expo-router app, an app.json with no scheme can crash only the iOS Release build at launch. Why Debug and Android survive, the two ways to fix it, how to think about leaving the scheme out on purpose, and a pre-submission check.
⬡ Dev Tools2026-10-15
When EXPO_PUBLIC_ Values Read Fine in Dev but Come Back undefined in Production: Telling the Spellings Apart
The API URL reads fine while developing and turns undefined once the app is built. The cause was how process.env was written. I lined up babel-preset-expo's output for dev and production and tabulated which spellings get replaced and which are left behind.