Test cases / image

deft image pad

Add a border or canvas: --border 20, --size 1080x1080

1 run on real files, 3 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.

Add a white borderPassed

Add a 40 pixel white border around hopper.png and save it as framed.png.

deft image pad hopper.png --border 40 -o framed.png

Input

hopper.png 29.9 KB · 128x128
hopper.png

Output

framed.png 35.8 KB · 208x208
framed.png
Automatic checks (1)
  • python: code = "from PIL import Image; a = Image.open('hopper.png'); b = Image.open('framed.png'); assert b.size == (a.width + 80, a.height + 80)"