bim-image
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'iwr -useb https://bimcli.com/install.ps1?src=site -OutFile $env:TEMP\bim-install.ps1; powershell -NoProfile -ExecutionPolicy Bypass -File $env:TEMP\bim-install.ps1'
Convert, resize, annotate, and compare images from the command line. Useful anywhere a pipeline produces or consumes image files — site visit photos from a phone, renderings from a visualization model, scanned drawings. Handles HEIC natively so your assistant doesn't have to ask you to convert first.
Image format conversion, metadata, annotation, and QA for AEC workflows. Handles site photos (HEIC), renderings (PNG/JPG), and drawing scans (TIFF).
For a site visit, read photo GPS, strip location metadata before sharing, and make a labelled contact sheet.
Requirements
Vendored sidebinaries — verified by bim doctor --json:
exiftool— required forexifverbsheif-convert— required for HEIC/HEIF input
Supported formats
Input: PNG, JPG, TIFF, WebP, BMP, HEIC, HEIF Output: PNG, JPG, TIFF, BMP (HEIC output not supported)
Verbs
| Verb | What it does |
|---|---|
bim image info FILE | Decode and report image metadata: format, dimensions, color model, EXIF presence |
bim image convert
| Convert an image between formats (PNG, JPG, TIFF, BMP; HEIC decode via vendored heif-convert) |
bim image resize
| Resize, rotate, or crop an image. auto-orient reads EXIF Orientation, rotates pixels, and strips the tag (requires exiftool; auto-installed if missing). Output includes a 'warn' field if the orientation strip succeeded on image but exiftool tag removal failed (non-fatal). |
bim image annotate
| Draw rectangles, lines, arrows, and text onto an image |
bim image diff
| Pixel-level comparison of two images. Both images must be the same dimensions. Output always includes pixels_total, pixels_diff, ratio_diff, and exceeds_limit. When fail-over is set and exceeded, exceeds_limit is true in the result (exit code is still 0; callers should check exceeds_limit). |
bim image crop
| Cut a pixel box out of an image. The box is in the source's pixels (x1,y1 exclusive), grown by pad on every side, then clamped to the image; a box with no area, or one entirely outside the image, is refused (bad-args). box_applied is the box actually cut. |
bim image tile
| Lay images out as a labelled contact sheet: each image fitted into a cell x cell square (aspect kept, centred, on white; small images scaled up), its label drawn under it in a built-in bitmap font (printable ASCII; other characters drawn as '?', long labels wrapped to two lines and cut with '...'), tiles row-major in cols columns under an optional title. Same inputs give a byte-identical PNG. cells maps each input index to its tile rectangle (image cell plus label band) on the sheet. |
bim image to-pdf FILES
| Wrap one or more images as pages in a new PDF |
bim image setup
| Download and install required dependencies (exiftool, ImageMagick) into vendor-bin/ |
bim image doctor | Driver health check |
bim image version | Driver version |
exif
| Verb | What it does |
|---|---|
bim image exif.read
| Emit AEC-relevant EXIF fields as JSON (GPS, datetime, make/model, orientation, dimensions) |
bim image exif.strip
| Write a metadata-free copy of the image to out. Output: output_file (path written) and tags_changed (-1 = all tags removed, exact count unavailable from exiftool batch API). |
bim image exif.set
| Write one EXIF tag to a new file (single-file mode; NDJSON batch stdin is v0.2) |
annotate ops format
[
{"type":"rect","x":100,"y":200,"width":300,"height":150,"color":"#ff0000","linewidth":2,"filled":false},
{"type":"text","x":100,"y":195,"text":"revise","color":"#ff0000","size":18}
]
Supported types: rect, line, arrow, text. Pass "-" to --ops to read NDJSON from stdin.
For agent use: /image/llms.txt
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command 'iwr -useb https://bimcli.com/install.ps1?src=site -OutFile $env:TEMP\bim-install.ps1; powershell -NoProfile -ExecutionPolicy Bypass -File $env:TEMP\bim-install.ps1'
Then ask your assistant to run bim describe --json. See what the installer does.