Test cases / image

deft image montage

Tile images into a grid: --cols 3 --size 300x300

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

Make a collagePassed

Put DSCN0010.jpg, gallery.webp, hopper.png and dice.png into a 2 by 2 grid image called collage.png.

deft image montage DSCN0010.jpg gallery.webp hopper.png dice.png --cols 2 --size 400x400 -o collage.png

Input

DSCN0010.jpg 157.9 KB · 640x480
DSCN0010.jpg
dice.png 219.3 KB · 800x600
dice.png
gallery.webp 29.6 KB · 550x368
gallery.webp
hopper.png 29.9 KB · 128x128
hopper.png

Output

collage.png 798.0 KB · 800x800
collage.png
Automatic checks (2)
  • image: file = "collage.png", format = "PNG"
  • python: code = "from PIL import Image\nw, h = Image.open('collage.png').size\nassert w >= 400 and h >= 400 and 0.5 < w / h < 2, (w, h)\n"