Photo EXIF Extractor
Extracts camera, lens, exposure, timestamp, and optional GPS EXIF metadata from photos in the EmDash media library.
@anguszyu.bsky.social/exifOr open Registry in your EmDash admin and search for this name.
Overview
Photo EXIF Extractor automatically inspects photos uploaded to your EmDash media library and extracts camera metadata, lens details, exposure settings, timestamps, and optional GPS coordinates.
Key Capabilities
- Automatic Extraction: Listens to
media:afterUploadand indexes photo metadata in sandboxed storage. - Multi-Format Support: Zero-dependency Web-API parser supporting JPEG, TIFF, WebP, PNG, HEIC, HEIF, and AVIF.
- Privacy by Default: GPS coordinates are excluded by default and only extracted when explicitly enabled.
- Admin Dashboard (
/exif): Browse photos, inspect full camera/exposure details, filter by camera brand, and batch-scan existing media library items. - Public & Private APIs: Readily fetch metadata in theme templates and client frontends.
How to Use
- Automatic Extraction: Upload any photo to the EmDash media library. The plugin parses EXIF metadata in the background.
- Admin Dashboard: Go to Photo EXIF (
/exif) in the admin navigation. You can view indexed photos, filter by camera make, inspect exposure values, and run batch scans ("Scan Missing Photos" or "Rescan All Photos"). - Frontend Display: Query photo EXIF from your theme or client application:
const res = await fetch("/_emdash/api/plugins/exif/get?mediaId=" + mediaId);
const { data } = await res.json();
if (data.found && data.exif) {
// Preformatted summary
console.log(data.exif.summary);
// "Sony ILCE-7M4 · FE 35mm F1.4 GM · 35mm · f/1.4 · 1/250s · ISO 100"
// Structured camera and exposure objects
console.log(data.exif.camera);
console.log(data.exif.exposure);
}
Permissions
Plugins get only the capabilities they declare and you approve. Your EmDash admin lists these again before anything installs.
Installation
Installation
Install the plugin from the EmDash plugin registry:
pnpm add @anguszyu.bsky.social/exif
Registration
Add exif to your site's sandboxed plugins in emdash.config.ts:
import { defineConfig } from "emdash";
import exif from "@anguszyu.bsky.social/exif";
export default defineConfig({
sandboxed: [exif],
});
Configuration
Configure options under Settings -> Plugins -> Photo EXIF Extractor in the EmDash admin console:
autoExtractOnUpload(defaulttrue): Automatically extract EXIF on upload.includeGps(defaultfalse): Enable to store GPS coordinates (latitude, longitude, altitude).includeRawTags(defaulttrue): Store raw TIFF/IFD tags alongside normalized metadata.
Keep exploring
More plugins like Photo EXIF Extractor
Browse by keyword, or see everything @anguszyu.bsky.social publishes.