Test cases / image

deft image meta

Read EXIF, or set --title --author --copyright --date

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

Fixed cases

Generated files, compared with ground truth by tools other than deft.

GPS and other tags stayPassed

deft image meta DSCN0010.jpg --author Ada -o out.jpg

Input

DSCN0010.jpg 157.9 KB · 640x480
DSCN0010.jpg

Output

out.jpg 151.3 KB · 640x480
out.jpg
What it printed
ok image.meta DSCN0010.jpg -> out.jpg  151KB  0.00s
Automatic checks (1)
  • python: code = "from PIL import Image; e = Image.open('out.jpg').getexif(); assert e.get(0x013b) == 'Ada' and e.get(0x010f) == 'NIKON' and e.get_ifd(0x8825), dict(e)"