1 -- Retrieve the lens ID data
2 -- Called from the pre-formatted tag lua.lensID
3 -- Requires lua and extftool
11 path = Image:get_path()
13 lensIDfile = io.popen("exiftool -Composite:LensID \"" .. path .. "\" 2>/dev/null ")
14 lensID = lensIDfile:read("*a")
18 n = string.find(lensID, ":")
22 lensIDstring = string.sub(lensID, n)
23 m = string.find(lensIDstring, "Unknown")
28 lensIDstring = string.gsub(lensIDstring, "\n", "")