JobResult object as one JSON line on stdout. On success, success is true and outputs contains one or more OutputFile objects. On failure, success is false and an error field is present instead — see Errors.
JobResult
true when the operation completed without error, false otherwise.The name of the operation that was executed, e.g.
"resize" or "video_transcode".Array of files produced by the operation. Most operations produce one file;
resize and srcset produce one per requested width.Wall-clock time taken by the operation in milliseconds, measured inside the Rust engine.
Optional JSON object containing operation-specific data. Present for
quality, exif (with return_metadata: true), and placeholder (dominant color). null when the operation does not produce metadata.OutputFile
Each element of theoutputs array describes one file produced by the operation.
Absolute or relative path to the output file written to disk.
Image format of the output file. One of
png, jpeg, webp, or avif.Width of the output image in pixels.
Height of the output image in pixels.
File size in bytes.
Base64-encoded image data. Only present when the job was submitted with
"inline": true. See inline output.Successful response example
Inline output example
When"inline": true is set, data_base64 is populated on each OutputFile:
Metadata responses
Some operations populate themetadata field with operation-specific data.
AutoQuality (quality)
When the quality operation runs its binary-search optimization, metadata reports the final result:
The target file size in bytes that was requested.
The quality value (1–100) that the binary search converged on.
The actual file size in bytes of the output.
How far the final size is from the target, as a percentage.
Number of binary search iterations performed.
true if the result fell within the configured tolerance; false if the search exhausted max_iterations without converging.EXIF extract (exif)
When exif_op is "extract" or return_metadata is true, metadata contains the EXIF tags read from the source image:
true if the image contains an EXIF block; false if none was found.Camera manufacturer, e.g.
"Canon".Camera model, e.g.
"EOS 5D".EXIF orientation value (1–8).
1 means no rotation needed.Capture timestamp in EXIF format:
"YYYY:MM:DD HH:MM:SS".Shutter speed as a fraction, e.g.
"1/250".Aperture value, e.g.
"f/2.8".ISO sensitivity, e.g.
400.GPS coordinates, if present.