deft / guides

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.jpg and 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

Limits

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.

TaskSolvedTime New tokensFailed 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 → yes57 s → 19 s22.3k → 12.3k3 → 0
Convert an iPhone photoConvert photo.heic to photo.jpg.yes → yes45 s → 10 s16.4k → 9.5k3 → 0
All 2 tasks2 → 2102 s → 30 s38.7k → 21.9k6 → 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.