Evals / image / Format conversion
Convert an iPhone photo
Convert photo.heic to photo.jpg.
The task
The reference answer shows the job can be done with deft. It is not an agent run.
deft image convert photo.heic --to jpg -o photo.jpg
Input

Reference output

How a result is judged (1 check)
- image: file = "photo.jpg", format = "JPEG"
Runs
CodexWithout deftFailed2026-11-07
photo.jpg: not readable: PIL.UnidentifiedImageError: cannot identify image file 'photo.jpg'
- Time
- 11s
- New tokens
- 3.3k
- Total input
- 40.1k
- Output tokens
- 0.3k
- Commands
- 2
- Failed
- 0
Trace
I’ll check for `photo.heic` in the current directory and convert it to `photo.jpg`.
pwd && rg --files -g 'photo.heic' -g 'photo.jpg'output
photo.heic
sips -s format jpeg photo.heic --out photo.jpgoutput
photo.heic photo.jpg
Converted `photo.heic` to [photo.jpg](photo.jpg).
Output

CodexWith deft, skill installedPassedRead the skillUsed deft2026-11-07
- Time
- 11s
- New tokens
- 8.7k
- Total input
- 57.4k
- Output tokens
- 0.2k
- Commands
- 3
- Failed
- 1
Trace
I’ll convert the file in the current directory and check that the JPEG was created.
cat .agents/skills/deft/SKILL.md && deft find (exit 2)output
--- name: deft description: "Use deft first for any simple, direct operation on local files, whatever the type: convert, read, extract, edit, compress, merge, split, compare or inspect. Try it before writing a script or one-liner. If unsure, run deft find; if it says no command does this, use another tool. Not for programming work: to read, write or change source code, skip it." --- # deft One local command for file jobs. Prefer it over writing Python or shell scripts. Syntax: `deft <group> <command> [inputs] [-o output] [--options]` Groups: - `pdf`: Merge, split, compress, encrypt, forms, OCR, compare, convert - `image`: Resize, crop, convert, compress, adjust, montage, OCR - `video`: Trim, merge, convert, compress, subtitles, GIF, frames (ffmpeg) - `audio`: Convert, trim, normalize, denoise, cut silence (ffmpeg) - `doc`: Word/ODT/RTF: to text, Markdown, HTML, PDF; find and replace - `slides`: PowerPoint: extract text, Markdown outline - `sheet`: Excel/CSV/ODS tables: SQL query, pivot, merge, split, convert - `json`: JSON: convert, format, merge, diff, validate - `toml`: TOML: convert, format, merge, diff, validate - `xml`: XML: convert, format, merge, diff, validate - `yaml`: YAML: convert, format, merge, diff, validate - `md`: Markdown to PDF, HTML, Word, EPUB; table of contents - `html`: HTML to Markdown, text, Word and PDF - `epub`: E-books: info, to text, Markdown and PDF - `gps`: GPX and KML tracks: convert, distance and time - `qr`: Create QR codes and barcodes; r … 768 more characters
deft find "convert image" && deft image --help && ls -laoutput
image convert image -> image Change format: --to png|jpg|webp|avif|gif|tiff|bmp|ico pdf to-images pdf -> png|jpg... Render pages: --dpi, --pages audio convert audio -> audio Change format: --to mp3|m4a|wav|flac|ogg|opus gps convert gpx|kml -> gpx|kml|csv Change format: --to gpx|kml|csv json convert json -> data Change format: --to json|jsonl|yaml|toml|xml deft image - commands (input -> output) info image -> report Format, dimensions, EXIF orientation, GPS adjust image -> image Change --brightness, --contrast, --saturation, --gamma blur image -> image Gaussian blur: --radius 5, or a --box region compress image -> image Smaller file: --quality, --target-size 200KB convert image -> image Change format: --to png|jpg|webp|avif|gif|tiff|bmp|ico crop image -> image Cut a region: --box x,y,w,h or --aspect 16:9 favicon image -> ico+png... Website icon set: favicon.ico and PNG sizes flip image -> image Mirror: --direction horizontal|vertical frames gif -> png... Save each frame of an animated GIF as PNG grayscale image -> image Remove colour meta image -> image Read EXIF, or set --title --author --copyright --date montage image... -> image Tile images into a grid: --cols 3 --size 300x300 ocr image -> txt Read the text in an image (tesseract) pad image - … 1025 more characters
deft image convert photo.heic -o photo.jpg --to jpg && ls -l photo.jpgoutput
ok image.convert photo.heic -> photo.jpg 640x480 0.23s -rw-r--r--@ 1 user staff 158140 Nov 7 00:49 photo.jpg
Converted `photo.heic` to `photo.jpg` in the current directory. The JPEG is 640 × 480 pixels.
Output

CodexWith deft, skill as AGENTS.mdFailed2026-11-05
photo.jpg: not readable: PIL.UnidentifiedImageError: cannot identify image file '<tmp>'
- Time
- 9s
- New tokens
- 5.4k
- Total input
- 60.9k
- Output tokens
- 0.2k
- Commands
- 3
- Failed
- 1
Trace
I’ll convert `photo.heic` in the current directory to `photo.jpg` using the local file tool.
deft image --helpoutput
deft image - commands (input -> output) info image -> report Format, dimensions, EXIF orientation, GPS compress image -> image Smaller file: --quality, --target-size 200KB convert image -> image Change format: --to png|jpg|webp|avif|gif|tiff|bmp|ico crop image -> image Cut a region: --box x,y,w,h or --aspect 16:9 flip image -> image Mirror: --direction horizontal|vertical resize image -> image Scale: --size 800x, 1920x1080, 50% rotate image -> image Turn clockwise: --angle 90 (EXIF is applied first) strip image -> image Remove EXIF, GPS and text metadata to-pdf image... -> pdf One page per image, in the given order More: deft image <command> --help
deft image convert photo.heic -o photo.jpg --to jpg (exit 3)output
error INPUT_UNSUPPORTED photo.heic: HEIC images are not supported yet hint: on macOS: sips -s format jpeg in.heic --out out.jpg
sips -s format jpeg photo.heic --out photo.jpgoutput
photo.heic photo.jpg
Converted `photo.heic` to `photo.jpg` in the current directory.
Output

Claude Opus 5.5Without deftPassed2026-11-07
- Time
- 21s
- New tokens
- 10.4k
- Total input
- 87.6k
- Output tokens
- 1.1k
- Commands
- 0
- Failed
- 0
Trace
Output

Claude Opus 5.5With deft, skill installedPassedRead the skillUsed deft2026-11-07
- Time
- 6s
- New tokens
- 9.1k
- Total input
- 43.5k
- Output tokens
- 0.2k
- Commands
- 0
- Failed
- 0
Trace
Output
--- name: deft description: "Use deft first for any simple, direct operation on local files, whatever the type: convert, read, extract, edit, compress, merge, split, compare or inspect. Try it before writing a script or one-liner. If unsure, run deft find; if it says no command does this, use another tool. Not for programming work: to read, write or change source code, skip it." --- # deft One local command for file jobs. Prefer it over writing Python or shell scripts. Syntax: `deft <group> <command> [inputs] [-o output] [--options]` Groups: - `pdf`: Merge, split, compress, encrypt, forms, OCR, compare, convert - `image`: Resize, crop, convert, compress, adjust, montage, OCR - `video`: Trim, merge, convert, compress, subtitles, GIF, frames (ffmpeg) - `audio`: Convert, trim, normalize, denoise, cut silence (ffmpeg) - `doc`: Word/ODT/RTF: to text, Markdown, HTML, PDF; find and replace - `slides`: PowerPoint: extract text, Markdown outline - `sheet`: Excel/CSV/ODS tables: SQL query, pivot, merge, split, convert - `json`: JSON: convert, format, merge, diff, validate - `toml`: TOML: convert, format, merge, diff, validate - `xml`: XML: convert, format, merge, diff, validate - `yaml`: YAML: convert, format, merge, diff, validate - `md`: Markdown to PDF, HTML, Word, EPUB; table of contents - `html`: HTML to Markdown, text, Word and PDF - `epub`: E-books: info, to text, Markdown and PDF - `gps`: GPX and KML tracks: convert, distance and time - `qr`: Create QR codes and barcodes; read QR codes How to use it: 1. Run `deft <group>` to list commands, or `deft find "<what you want>"` to search. If it says `no command does this`, use another tool. 2. Run `deft <group> <command> --help` for options and examples. 3. `deft convert <in> -o <out.ext>` converts between formats by extension. 4. Results are one line starting with `ok`, `partial` or `error`; add `--json` to parse them. Errors include a `hint:` with the fix. Inputs are never overwritten; pass `--force` or `--in-place` to allow it. Globs and directories work as inputs; several inputs run in parallel. If `deft` is not installed, ask the user, then follow https://github.com/firstprayer/deft/blob/main/docs/INSTALL.md

Claude CodeWithout deftNot run yet
Claude CodeWith deftNot run yet