Test cases / image

deft image crop

Cut a region: --box x,y,w,h or --aspect 16:9

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.

Centre crop to a squarePassed

Crop DSCN0010.jpg to a centered square called square.jpg.

deft image crop DSCN0010.jpg --aspect 1:1 -o square.jpg

Input

DSCN0010.jpg 157.9 KB · 640x480
DSCN0010.jpg

Output

square.jpg 121.4 KB · 480x480
square.jpg
Automatic checks (1)
  • image: file = "square.jpg", width = 480, height = 480