1
0
Fork 0
mirror of synced 2024-06-01 10:39:30 +12:00

Remove PNG compression option

This commit is contained in:
nagadomi 2016-04-20 18:52:31 +09:00
parent 212b659ec5
commit da03209d3e

View file

@ -43,7 +43,7 @@ function image_loader.encode_png(rgb, depth, inplace)
im = gm.Image(rgb, "I", "DHW")
-- im:colorspace("GRAY") -- it does not work
end
return im:depth(depth):format("PNG"):toString(9)
return im:depth(depth):format("PNG"):toString()
end
function image_loader.save_png(filename, rgb, depth, inplace)
local blob = image_loader.encode_png(rgb, depth, inplace)