Test cases / image

deft image compress

Smaller file: --quality, --target-size 200KB

1 run on real files, 10 tests on generated files, not shown. 0 failed.

Real-file tasks

Real files and a plain-language job, from the agent benchmark. These are the reference answers, not an agent run.

Hit a size limit without resizingPassed

earth.jpg is 6MB. Get it under 500KB without changing its dimensions, as small.jpg.

deft image compress earth.jpg --target-size 500KB -o small.jpg

Input

earth.jpg 6.2 MB · 3000x3002
earth.jpg

Output

small.jpg 492.3 KB · 3000x3002
small.jpg
Automatic checks (3)
  • max_bytes: file = "small.jpg", bytes = 512000
  • image: file = "small.jpg", width = 3000, height = 3002
  • image_similar: file = "small.jpg", to = "earth.jpg", max_difference = 6