Module:Image size

local image_size = {}

function image_size.getSize(frame) imgName = frame.args[1] img = mw.title.makeTitle("Image",imgName) if img == nil then return "0,0" end imgFile = img.file if imgFile.exists then return imgFile.width..","..imgFile.height else return "0,0" end end

return image_size