Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/image.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgchanan <gregchanan@gmail.com>2017-04-20 21:03:58 +0300
committerSoumith Chintala <soumith@gmail.com>2017-04-20 21:03:58 +0300
commitdeef94cbf0e02a647b87544f0c693ffcda7e4e7d (patch)
tree654974e95ac97a2a0865aec89452c1ce7e95fead
parent705393fabf51581b98142c9223c5aee6b62bb131 (diff)
compressPNG should require 'liblua_png' rather than 'libpng'. (#219)
All other PNG calls require 'liblua_png' and the test currently fails on compression.
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index d1c5f2b..62ade5b 100644
--- a/init.lua
+++ b/init.lua
@@ -205,7 +205,7 @@ function image.getPNGsize(filename)
end
local function compressPNG(tensor)
- if not xlua.require 'libpng' then
+ if not xlua.require 'liblua_png' then
dok.error('libpng package not found, please install libpng',
'image.compressPNG')
end