mirror of
https://github.com/woodchen-ink/webp_server_go.git
synced 2025-07-18 05:32:02 +08:00
parent
d35e0e0d0b
commit
1ec981b1fb
@ -46,7 +46,7 @@ var (
|
||||
ProxyMode bool
|
||||
Prefetch bool
|
||||
Config = NewWebPConfig()
|
||||
Version = "0.10.5"
|
||||
Version = "0.10.6"
|
||||
WriteLock = cache.New(5*time.Minute, 10*time.Minute)
|
||||
ConvertLock = cache.New(5*time.Minute, 10*time.Minute)
|
||||
RemoteRaw = "./remote-raw"
|
||||
|
@ -111,6 +111,7 @@ func convertImage(rawPath, optimizedPath, imageType string, extraParams config.E
|
||||
// Image is only opened here
|
||||
img, err := vips.LoadImageFromFile(rawPath, &vips.ImportParams{
|
||||
FailOnError: boolFalse,
|
||||
NumPages: intMinusOne,
|
||||
})
|
||||
defer img.Close()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user