Skip to content

Commit

Permalink
support vips avif speed, add option test
Browse files Browse the repository at this point in the history
  • Loading branch information
liudongmiao committed Aug 9, 2024
1 parent ba61933 commit aae5c99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vips/option_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func TestWithOption(t *testing.T) {
WithMaxHeight(998),
WithMaxResolution(1666667),
WithMozJPEG(true),
WithAvifSpeed(9),
WithDebug(true),
WithMaxAnimationFrames(3),
WithDisableFilters("rgb", "fill, watermark"),
Expand All @@ -37,6 +38,7 @@ func TestWithOption(t *testing.T) {
assert.Equal(t, 1666667, v.MaxResolution)
assert.Equal(t, 3, v.MaxAnimationFrames)
assert.Equal(t, true, v.MozJPEG)
assert.Equal(t, 9, v.AvifSpeed)
assert.Equal(t, []string{"rgb", "fill", "watermark"}, v.DisableFilters)

})
Expand Down

0 comments on commit aae5c99

Please sign in to comment.