Skip to content

Commit

Permalink
Read all pages (#308)
Browse files Browse the repository at this point in the history
* Read all pages

* Bump to 0.10.6
  • Loading branch information
n0vad3v authored Dec 29, 2023
1 parent d35e0e0 commit 1ec981b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions encoder/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 1ec981b

Please sign in to comment.