Fix PNG reading on Windows

master
Lars Mueller 2022-05-12 14:28:15 +02:00
parent f63e3577f7
commit 189e796219
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ local png_dimensions = setmetatable({}, {__index = function(self, filename)
if not media_path then
return
end
local file = io.open(media_path, "r")
local file = io.open(media_path, "rb")
if not file then
return
end