Back to explorer
image-processing SDKs & libraries best source: official docs

graphicsmagick

A

grade

100%

reliability

+0.39

overall

GraphicsMagick is a command-line image processing utility that exposes functions like scaling, cropping, and format conversion through the gm executable. For an AI agent, the tool enables multi-step raster manipulations to be queued and completed within a single shell operation. The interface is deterministic, ensuring that a sequence of transformation flags consistently produces identical output files.

Surfaces × lenses

hostile friendly
surface ↓
lens →
Coherence Economy Consistency Verifiability Safety
Disclosure
Interface
Loop
Recursion
Human

Click any cell for what was measured and why. A corner dot marks a cell filled by a hard instrument (checker, telemetry); undotted cells are judged by the rater ensemble. 53% of this matrix is hard-measured.

The experience

The agent interacts with the tool via bash commands, executing the gm binary to read, transform, and output images. The interface works well for sequencing multiple modifications—such as downscaling with -resize, cropping with -crop, and adjusting saturation with -modulate—in a single shell command. This chaining mechanism reduces subprocess calls and allows the agent to execute a complete edit pipeline in a single step.

Text-rendering operations behave adequately but present a point of failure due to external dependencies. When Ghostscript fonts are absent, standard text drawing commands fail, requiring the agent to locate a specific system font file and declare its directory path using the -font option. Debugging this syntax is iterative: the agent must query system paths, test local .ttf files, and verify the console output of the -draw command.

File output and format conversion work well due to the deterministic structure of the CLI. To generate specified WebP and JPEG assets under a strict file-size budget, the agent relies on quality flag adjustments (-quality). Since target systems can compile the binary without WebP capability, the agent must detect support using gm convert -list format and employ alternative commands like magick if the format is unsupported.

Because the command-line interface provides no visual output, verifying the image is difficult for the agent without secondary tools. The agent manages this constraint adequately by checking output file dimensions and running programmatic checks, such as testing for bright pixels in coordinate ranges where white watermark text is expected. The non-destructive command structure preserves input files and simplifies rollbacks when parameters require correction.

Fit

GraphicsMagick is a good fit for agents executing automated, high-volume asset-processing pipelines where consistency and efficiency are critical. It supports deterministic operations that allow an agent to resize, crop, and convert batches of imagery with predictably structured shell commands. Because multiple operations compile into a single line, the tool optimizes the agent's interaction budget and execution speed.

The tool is a poor fit for tasks requiring advanced typography, layout design, or continuous aesthetic feedback. Since the CLI does not provide visual rendering previews, debugging typographical placement, font face compatibility, or subtle tone adjustments requires complex programmatic pixel analysis or costly multi-turn repair cycles. It is also unsuitable for environments with unpredictable system dependencies where native libraries for modern image formats might be absent.

Notes

The following diagram illustrates the agent's iterative pipeline and validation loop when executing image transformations and resolving font dependencies.

Validation

Convergent check. Where a hard instrument and the independent rater panel measure the same cell, they agree on 7 of 16 cross-checked cells (75%). Two independent methods landing on the same number is our accuracy signal — not just the raters agreeing with each other.

Cell where they disagreeInstrumentRaterΔ
disclosure.economy-0.35+0.701.05
disclosure.verifiability-0.40+0.601.00
human.verifiability-0.20+0.801.00
human.coherence-0.20+0.500.70
human.safety-0.10+0.500.60
recursion.economy+0.87+0.300.57
recursion.coherence-0.25+0.300.55
recursion.determinism+1.00+0.500.50
recursion.verifiability+0.00+0.500.50

Ground truth

4 of 4 requirements met · deterministic checker, no model judgment
  • WebP output produced — 33KB
  • JPEG fallback produced — 56KB
  • cropped to ~1.91:1 frame — 1200×630 (1.90:1)
  • each output under 200KB — 33KB, 56KB

Reliability (pass^k): one attempt succeeds 100% of the time · three in a row 100% · all runs 100%. A fresh agent resuming from the files alone never broke prior work.

Models & runs

2026-07-07
ModelHarnessRunsSolvedTurns
glm-5.2 PI2321/237

Each path is one run through the shared semantic space; nodes are turns (red = an errored turn). Hover a model — here or in the graph — to isolate its runs.

How this was measured

reference agent
pi:z-ai/glm-5.2
trials
25 (n=5/tier)
methodology
v0.1 3e74a3c6
cost
$0.7231
hard-measured cells
53%
teaching source
graphicsmagick (official docs) (official-docs)

Same brief, same reference agent, and the same trial count for every tool in a category — a difference in the numbers is attributable to the tool (and its teaching source), not the setup. Profiles carry the methodology hash; results under different hashes are not compared.