get("#374") -- md5.calc get("#348") -- rgb functions w, h = img.width, img.height tbl, i = {}, 0 h = 1 -- XXX for y = 0, h-1 do for x = 0, w-1 do r, g, b = rgb(img.getInt(x, y)) i=i+1 tbl[i]=string.char(r, g, b) if i % 10000 == 0 then print(i.." pixels converted") end end end s = table.concat(tbl) hash = md5.calc(s) return "Image Hash (partial): "..hash