fix upload file extract issue, add more test (#17)

* fix upload file extract issue, add more test

* uncomment test
This commit is contained in:
木逸辰
2021-09-09 11:13:07 +08:00
committed by GitHub
parent 3d2e03be82
commit 3f98d5825d
3 changed files with 22 additions and 15 deletions
+20
View File
@@ -0,0 +1,20 @@
local magick = "/usr/local/ImageMagick/bin/magick"
local tmp = io.open(magick,"r")
if tmp == nil then
-- in mac os
magick = "/usr/local/bin/magick"
else
io.close(tmp)
end
print(magick)
--local origin = {
-- "/Users/moicen/Music/alchemy/Song-of-joy.png",
-- "/Users/moicen/Music/alchemy/You-and-me.png"
--}
--origin = table.concat(origin, " ")
--ngx.log(ngx.ERR, origin)
--local file = io.popen("/usr/local/bin/magick convert -append " .. origin .. " /tmp/combined.jpeg" )
--local output = file:read("*all")
--file:close()
--ngx.say(output)