execute command

This commit is contained in:
2022-08-23 00:22:59 +08:00
parent 4727768308
commit e85840f8b2
+1 -1
View File
@@ -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)