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