Utilities

Resize, crop, rotate, or convert an image

Pipeline image processor. Reads input_path, applies optional crop then resize then rotate_degrees, and writes to output_path in the requested format (png/jpeg/heic/webp/tiff — inferred from extension if omitted). Pure format conversion (no transforms) is allowed.

post/v1/image/transform

Request

  • Base URL: http://localhost:9998
  • URL: http://localhost:9998/v1/image/transform
  • Auth: HTTP bearer

Request body

input_pathstring required

Absolute path to the source image.

output_pathstring required

Absolute path for the transformed output.

format'png' | 'jpeg' | 'heic' | 'webp' | 'tiff'

Output format. Inferred from output_path extension when omitted.

qualitynumber

Encoder quality (lossy formats). Default 0.9.

rotate_degreesnumber

Counter-clockwise rotation in degrees.

Response

Transform result (output path, byte size, dimensions)

pathstring required
bytesinteger required
widthinteger required
heightinteger required

Changes

No recorded changes to this operation across all 1 revision of this API.