Menu

1 / 6

exif_kit: read and write photo EXIF in Flutter, GPS and time zone included

DEV Community: flutter·Abdeldjalil Chougui·12 days ago
#swfYo01M
#devtoflutter#devto#dev#exif#exifkit
Long article (1384 words) — no AI summary yet.
Reading 0:00
15s threshold

Every photo carries a small block of metadata next to its pixels: where it was taken, when, which way the camera was held, and the settings used. That block is EXIF, and apps need it more often than you would think. You read the orientation to show a picture upright. You read the capture date to sort a gallery. You read the GPS position to place a photo on a map, and you remove it before the photo is shared.

Each of those has a catch. A capture date without its time-zone offset is not a moment in time. A content:// URI from the gallery is not a file path. And since Android 10, the system hides GPS tags from media URIs unless the app asks for the original file.

exif_kit is a Flutter plugin that handles those cases. On Android it reads and writes through androidx ExifInterface. It also ships a JPEG reader written in pure Dart, with no dependencies, that works in unit tests and on any platform with dart:io .

What it does

Typed reads.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.