Prepare Sanity image assets with clean embedded metadata.
Drop your images, describe your schema and project. ExifInjector generates IPTC titles, alt text, keywords and copyright before files enter your Sanity dataset.
Drop Sanity image assets here
JPG, PNG, WebP - click or drag
Sanity Media Assets
Pre-filled settings for Sanity users
What the Sanity template does
No technical metadata knowledge needed. Fill in what you know about your Sanity content - ExifInjector handles the rest.
01
File-level portable metadata
IPTC fields travel outside Sanity's database — useful when images are served via CDN or reused.
02
Adds studio credit
Embeds studio name, copyright and creator metadata into every Sanity image asset.
03
Works before upload
Prepare images in the browser before they enter your Sanity dataset — no Studio plugin needed.
Ready to optimize Sanity images?
Use the Sanity template inside ExifInjector. Upload your images above, fill in your details, and download ready files in minutes.
First images free · No account required to try · Image quality preserved
Why Sanity image asset metadata matters
Sanity stores image assets in its own asset store and serves them through its CDN. Images uploaded without embedded IPTC metadata rely entirely on Sanity's database fields for context — context that is lost the moment the raw file is used outside Sanity's ecosystem. Embedded metadata ensures that every Sanity image asset carries portable, self-describing context across every frontend framework, API consumer, or distribution channel.
100+
frontend frameworks and tools integrate with Sanity — file-level metadata ensures context survives every integration
0
Studio plugins required — ExifInjector processes images before they enter your Sanity dataset
GROQ-friendly
IPTC metadata can complement Sanity GROQ queries by providing image context that survives API transformation
How to add metadata to Sanity image assets
Prepare images before dataset upload
Gather images you plan to upload to your Sanity dataset. ExifInjector supports JPEG, PNG, WebP — the formats most commonly used with Sanity image assets.
Enter schema and project context
Add your organisation name, the Sanity document type (product, post, author, landingPage), project frontend (Next.js, Astro, Remix), and relevant brand keywords.
Generate dataset-ready metadata
AI creates IPTC titles and descriptions written to be useful across any Sanity-powered frontend. Your studio credit and copyright are embedded at the file level.
Upload to Sanity dataset
Upload processed images via Sanity Studio's media panel or through your upload pipeline. The embedded metadata is served with the asset through Sanity's CDN, independent of your Studio fields.
Sanity image assets: with ExifInjector vs without
| Feature | With ExifInjector | Without |
|---|---|---|
| Context portability | Metadata travels with file across all frontends | Context exists only in Sanity Studio fields |
| Google Images indexing | IPTC metadata indexed alongside GROQ-populated content | Google relies on page-level metadata only |
| Studio plugin required | None | N/A |
| Cross-framework usability | File self-describes in Next.js, Astro, Remix, etc. | Metadata requires Studio query per implementation |
| Attribution outside Studio | Organisation + copyright in file | No attribution if file is used outside Sanity |
Frequently asked questions
Updated June 2025Can I use IPTC metadata as a fallback for Sanity alt text?
Yes. The IPTC title or description embedded in an image file can serve as a programmatic fallback for alt text when the Sanity document field is empty. In your frontend code, check the document's alt text field first; if empty, read the IPTC description from the image file metadata as a fallback. This approach improves accessibility compliance without requiring editors to fill in every field manually.
Does Sanity preserve embedded IPTC metadata when transforming images?
Sanity's image transformation pipeline (via the @sanity/image-url library) may strip metadata from images when applying transformations like crop, resize, or format conversion. For images where metadata preservation is critical, use the original untransformed asset URL or serve the image through a pipeline that preserves IPTC data.
How does image metadata complement GROQ queries in Sanity?
GROQ queries retrieve metadata stored in Sanity's document fields. File-level IPTC metadata is an additional layer that exists inside the binary file itself — useful when an image is served directly (bypassing GROQ), used by an API consumer that doesn't query Sanity, or shared outside your Sanity-powered application.