Convert HEIC to JPG from the command line
deft image convert turns an iPhone HEIC photo into a JPG, or into PNG, WebP, AVIF, GIF, TIFF or BMP.
deft image convert photo.heic --to jpg -o photo.jpg
Options
--to jpg|png|webp|avif|gif|tiff|bmp|ico- The format to write, or give
-o photo.jpgand the extension decides. --quality N- JPEG, WebP and AVIF quality, 85 by default.
deft image convert *.heic --to jpg -o jpg/- A whole folder of photos at once.
deft image resize photo.heic --size 1600x -o web.jpg- Converts and resizes in one step.
All options: deft image convert --help. Add --json for a structured result.
A real run
The released deft on a real file. This is exactly what it printed:
$ deft image convert photo.heic --to jpg -o photo.jpg
ok image.convert photo.heic -> photo.jpg 3024x4032 0.45s
photo.heic: iPhone 11 Pro HEIC photo, 3024x4032 in 512x512 tiles. The file, Free to use (metadata-extractor-images README).
Limits
- Reading HEIC needs ffmpeg on the machine (
brew install ffmpegorapt install ffmpeg). Without it deft stops withENGINE_MISSINGand says how to install it. - Photo metadata such as the date and GPS position is left out unless you add
--keep-metadata. - The input is never overwritten.
What it saves an AI agent
Every task in the deft benchmark that uses this command, run by Claude Code (Opus 5.5, medium effort) once without deft and once with deft and its skill installed. The prompt never mentions deft. Each cell reads without → with deft; click a task for the agent's full trace.
| Task | Solved | Time | New tokens | Failed commands |
|---|---|---|---|---|
| iPhone photo ready for a blogTurn photo.heic from my iPhone into photo.jpg for my blog: 1600 pixels wide, same proportions, and under 300KB. | yes → yes | 57 s → 19 s | 22.3k → 12.3k | 3 → 0 |
| Convert an iPhone photoConvert photo.heic to photo.jpg. | yes → yes | 45 s → 10 s | 16.4k → 9.5k | 3 → 0 |
| All 2 tasks | 2 → 2 | 102 s → 30 s | 38.7k → 21.9k | 6 → 0 |
One run per task and arm, on 2026-11-15. Deft was improved against these same tasks, so this is a development benchmark, not a held-out test. New tokens are input not served from the prompt cache, plus output. Failed commands are the agent's tool calls that returned an error: shell commands, and file reads and writes. All tasks: the benchmark.
Install
curl -fsSL https://deftcli.com/install.sh | sh
Or brew install firstprayer/tap/deft. One binary for macOS and Linux;
the script also sets up the skill for Claude Code and Codex. Install guide.