Field note
The new littletry/media-metadata utility on Replicate inspects an image, audio file, or video and returns normalized JSON. Depending on the media type, it reports MIME type, format, file size, dimensions, duration, frame count, and animation state, while accounting for EXIF orientation.
The operation runs on CPU and explicitly does not handle SVG, PDF, archives, or office documents. That limitation is useful because it makes the contract visible instead of pretending to be a universal parser. Unsupported files can be rejected or routed elsewhere before a model call.
This is a small deterministic component around AI, not an AI model. Its value is avoiding expensive ambiguity: validate the payload, choose a compatible branch, and record the input properties before sending bytes to vision APIs, storage, or publication systems.