imgcli

v0.2.0
io.github.swperb/imgcli Checked 3 days ago Published 5 months ago

Convert, resize, crop, filter & composite images via the imgcli CLI (lightweight, no deps)

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

convert_image Convert / process an image

Convert, resize, crop, rotate, filter, or composite an image with imgcli. Output format is chosen from the output file extension (png/jpg/jpeg/bmp/tga/ppm). Use `filters` for an ffmpeg-style comma-separated chain, e.g. "scale=800:-1,grayscale,gblur=2". Call list_filters for the full catalogue.

ParameterTypeDescription
input *stringPath to the input image file (or a generator like 'testsrc=640x480').
output *stringPath to write; the extension picks the format (png/jpg/bmp/tga/ppm).
filtersstringFiltergraph, e.g. "scale=512:-1,grayscale". Omit for a plain format conversion.
overwritebooleanOverwrite the output if it exists (default true).
qualityintegerJPEG quality 1-100 (default 90; ignored for non-JPEG).

probe_image Probe image dimensions

Return the width, height, and channel count of an image without converting it.

ParameterTypeDescription
input *stringPath to the input image file.

list_filters List available filters

List the full imgcli filter catalogue (geometry, colour, convolution, compositing).