This commit is contained in:
XiaoLi
2023-04-17 20:24:08 +08:00
committed by XiaoLi
parent a793ed88ae
commit 174ac8eb84
+1 -1
View File
@@ -48,7 +48,7 @@ for i = 1, len do
ngx.log(ngx.INFO, "COMBINE FILE -> ", images[i])
incoming = file_dir .. "/" .. images[i]
origin[i] = incoming .. ".png "
local cmd = convert .. " -resize 1280x " .. incoming .. " " .. origin[i]
local cmd = convert .. " -resize 642x1389 -strip -quality 75% " .. incoming .. " " .. origin[i]
ngx.log(ngx.INFO, 'CMD RESIZE -> ', cmd)
local handle = io.popen(cmd)
local result = handle:read("*a")