Labsco
MCP SERVER

ImageMagick

by AeyeOps

Convert DNG raw photos to lossless WebP from an assistant, with darktable as a fallback when ImageMagick cannot read the file.

Image Analysis, OCR & Vision
Summary
Two tools, and the second one exists because raw conversion fails in boring ways.

ImageMagick does not read DNG on every system, so check_converters tells you what you have before a batch, and auto mode falls back to darktable when the first attempt fails rather than erroring out. The scope is deliberately narrow — this is DNG to WebP, not a general image toolkit — and the project says so.

What it is

A small Rust MCP server that shells out to ImageMagick and darktable. It converts DNG raw files to WebP with lossless settings, choosing the converter automatically and falling back when the first one fails.

What you get
  • convert_dng_to_webp — convert a DNG file to WebP, with converter set to auto, imagemagick or darktable
  • check_converters — which converters are present on the system and usable
  • Automatic fallback: ImageMagick is tried first and darktable takes over when ImageMagick cannot handle the file
  • Lossless WebP settings applied for you, preserving exact pixel values at maximum compression effort
  • Darktable runs the raw pipeline with colour management and picks up an XMP sidecar if one is present
  • The output directory is created if it does not exist, and existing output files are overwritten
Requirements

At least one converter installed and on PATH: ImageMagick 7 (as convert7 or magick) or darktable-cli. Build it with Rust and point the client at the release binary. RUST_LOG sets logging verbosity. Input files must exist and carry a .dng extension.