Edit images

Three geometric edits (rotate, flip, crop) that share one browser-only pipeline. EXIF orientation handled correctly so phone photos always come out upright.

Why “just rotate the photo” isn’t actually simple

iPhone and Android photos store an EXIF Orientation tag, a hint to viewers that says “rotate this 90° clockwise to display correctly.” The pixel data on disk is stored in the camera’s native sensor orientation, but every viewer (Photos.app, Preview, your browser) silently rotates it on display. If a tool isn’t EXIF-aware, asking it to “rotate 90° right” rotates the raw sensor pixels, producing a result that’s now sideways everywhere.

Every edit on TinyPixel decodes pixels with imageOrientation: “from-image”. The browser auto-applies the EXIF rotation first, so the bitmap we work with is upright. The user’s requested rotation, flip, or crop is then baked into the new pixels, and the output EXIF Orientation tag is rewritten to 1 (top-left) so downstream viewers don’t double-rotate. JPG output passes through a quality-0.95 re-encode by default, high enough that the loss from one edit is imperceptible. PNG is lossless.

Related categories

Your files never leave your device

Verify in DevTools → Network. Read the privacy verification guide.