From e85840f8b27c6b4f39430f2fa41ea73179801a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E7=94=B7?= Date: Tue, 23 Aug 2022 00:22:59 +0800 Subject: [PATCH] execute command --- scripts/combine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/combine.lua b/scripts/combine.lua index ddf23c6..0358f0d 100644 --- a/scripts/combine.lua +++ b/scripts/combine.lua @@ -36,6 +36,7 @@ end for i = 1, len do ngx.log(ngx.INFO, "COMBINE FILE -> ", data[i]) local cmd = convert .. " -resize 1280x " .. data[i] .. " " .. file_dir .. "/" .. data[i] .. ".png" + io.popen(cmd) ngx.log(ngx.INFO, 'CMD RESIZE -> ', cmd) origin[i] = file_dir .. "/" .. data[i] .. ".png " end @@ -43,5 +44,4 @@ end local cmd = convert .. " -append " .. table.concat(origin, " ") .. " " .. combined ngx.log(ngx.INFO, 'CMD APPEND -> ', cmd) io.popen(cmd) - ngx.say(combined_uuid)