get("#479") -- getcrop2 function docrop2(img) local x1, y1, x2, y2 = getcrop2(img) return { width = x2-x1, height = y2-y1, getInt = function(x, y) return img.getInt(x+x1, y+y1) end } end