Commit 444a7deb by Li Feifei

Update upload.go

parent 15525c59
Pipeline #15568 passed with stages
in 38 seconds
......@@ -502,6 +502,9 @@ func pdfThumbnail(objectPath string, file *zip.File, bucket *oss.Bucket) ([]inte
return nil, errors.New("image ext is not found")
}
if img == nil {
return nil, errors.New("image is decode fail")
}
//if err = webp.Encode(buf, img, &webp.Options{Lossless: true}); err != nil {
// return nil, err
//}
......
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