1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os, tables, json
import nimexif/libexif
import nimexif/helpers
var result: cint
if paramCount() == 0:
echo "Gimme a file pls"
quit(QuitFailure)
let path = paramStr(1)
init_exif()
if fileExists(path):
let ed = exif_data_new_from_file(path)
echo pretty(%* ed.collect_exif_data())
else:
echo "Gimme an existing file pls"
deinit_exif()