xtract.bot

Auto-orient image

Try it interactively →
POST /api/image-auto-orient

Apply the EXIF orientation tag and rotate the pixels accordingly. Strips the tag so downstream tools see correctly-oriented pixels without needing to honour EXIF themselves.

Phone cameras typically store images in landscape and use the EXIF orientation tag to indicate which way is up. Many tools ignore the tag and display the image rotated. This tool reads the EXIF orientation, rotates the actual pixels accordingly, and writes a fresh image with the orientation tag cleared. Downstream tools that ignore EXIF will now display the image correctly.

Inputs

NameTypeDefaultDescription
image*fileInput image (PNG / JPEG / WebP).
formatenum (png | jpeg | webp)Output format. Defaults to the input's format.

Response

Modes: binary, base64-json. Cache: yes (24h TTL).