default filemode is 644, remove x bit for a png file. Fix #26

This commit is contained in:
Benny~ 2020-03-10 19:02:48 +08:00
parent 3caea2da38
commit 0b0da3b46c
No known key found for this signature in database
GPG Key ID: 6CD0DBDA5235D481
2 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func WebpEncoder(p1, p2 string, quality float32, Log bool, c chan int) (err erro
ChanErr(c)
return
}
if err = ioutil.WriteFile(p2, buf.Bytes(), 0755); err != nil {
if err = ioutil.WriteFile(p2, buf.Bytes(), 0644); err != nil {
log.Error(err)
ChanErr(c)
return

0
pics/webp_server.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 263 KiB

After

Width:  |  Height:  |  Size: 263 KiB