Fix PNG reading on Windows
parent
f63e3577f7
commit
189e796219
2
init.lua
2
init.lua
|
@ -88,7 +88,7 @@ local png_dimensions = setmetatable({}, {__index = function(self, filename)
|
||||||
if not media_path then
|
if not media_path then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local file = io.open(media_path, "r")
|
local file = io.open(media_path, "rb")
|
||||||
if not file then
|
if not file then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue