Skip to content

Commit

Permalink
Add test to new extra params
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsierra committed Jan 28, 2024
1 parent d020afd commit 3901f49
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vips/image_gif_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ func TestImage_GIF_Animated_to_WebP(t *testing.T) {
exportWebp(NewWebpExportParams()))
}

func TestImage_GIF_Animated_to_WebP_Extra_Params(t *testing.T) {
exportParams := NewWebpExportParams()
exportParams.MaxKeyFrames = 100
exportParams.MinKeyFrames = 10
exportParams.MinSize = true
goldenAnimatedTest(t, resources+"gif-animated.gif",
3,
nil,
nil,
exportWebp(exportParams))
}

func TestImage_GIF_Animated_Resize(t *testing.T) {
goldenAnimatedTest(t, resources+"gif-animated.gif",
3,
Expand Down

0 comments on commit 3901f49

Please sign in to comment.