Browse Source

Remove PNG compression option

nagadomi 9 years ago
parent
commit
da03209d3e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/image_loader.lua

+ 1 - 1
lib/image_loader.lua

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