Commit 145aa7a9 by Li Feifei

webp

parent d90ac8e1
Pipeline #14587 passed with stages
in 1 minute 0 seconds
......@@ -534,7 +534,7 @@ func uploadPacked(bucket *oss.Bucket, filename, contentHash,
OssImagesPath: objectPath + "images/",
}
for i := 1; i <= int(word); i++ {
p.ImagesName = append(p.ImagesName, fmt.Sprintf("%05d", i)+".png")
p.ImagesName = append(p.ImagesName, fmt.Sprintf("%05d", i)+".webp")
}
data, err := json.Marshal(p)
if err != nil {
......
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