Commit cb798120 by Li Feifei

test

parent 145aa7a9
Pipeline #14608 passed with stages
in 1 minute 0 seconds
......@@ -23,6 +23,7 @@ import (
"ppt_server/models"
"regexp"
"image"
"runtime/debug"
Qurl "net/url"
"strconv"
......@@ -514,6 +515,7 @@ func pdfThumbnail(objectPath string, file *zip.File, bucket *oss.Bucket) error {
filenameOnly = strings.TrimRight(file.Name, fileSuffix)
filenameOnly = strings.Replace(filenameOnly, "p", "", -1)
fileName := fmt.Sprintf("%05s", filenameOnly) + ".webp"
defer debug.FreeOSMemory()
return bucket.PutObject(objectPathName+fileName, bytes.NewReader(buf.Bytes()))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment