Image Import API

More than pixels. A better media library.

Build an image import around the asset record, not just its filename. Explore format decisions, verified metadata, derivatives, and meaningful descriptions.

PNGJPEGWEBP

Define an asset, then accept the file

Separate the creative asset, its original file, and its generated variants. Use stable asset identifiers and keep product associations explicit. Choose a deliberate set of formats and inspect accepted files through an appropriately controlled processing path.

A supplied filename or content type is not proof of file content. Keep invalid files distinct from valid formats that your workflow does not accept.

Create derivatives with a clear recipe

Keep originals separate from thumbnails and editorial crops when your retention policy allows. Record output dimensions and the transformation version. Test orientation handling and inspect diagrams or labels before applying automated cropping.

A square product tile and a wide editorial image can be legitimate variants of the same asset. Store that relationship rather than relying on names such as final-v2.

Review description and publication

Decide what embedded metadata belongs in public output. Preserve useful provenance in a protected record when public derivatives exclude it. Write descriptions for their page context instead of publishing camera-generated filenames.

Separate inspection from publication approval. Test replacement, duplicate handling, and deletion so retiring one image does not unexpectedly break other references.

Turn the idea into a test

Use a small, representative source and write down the expected result for one accepted record, one correction, and one repeated attempt. Keep the original values and the destination expectations visible throughout the review.

Use the format guides for source decisions and the local quickstart to see a simple mapping in action.

From Import Notes

A little reading. A better workflow.

All articles

Your next import starts here.

Pick a source. Get a clearer plan. Build something useful.

Explore import types ↗