Skip to content

Commit

Permalink
Updated ffimage_test back to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
YamiOdymel committed Jul 6, 2023
1 parent 8e831ee commit 63fcb5e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ffimage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,22 +475,22 @@ func TestPNGConvertion(test *testing.T) {
img, err = NewImage(output)
a.NoError(err)

a.Equal(300, img.GetWidth())
a.Equal(300, img.GetHeight())
a.Equal(431, img.GetWidth())
a.Equal(324, img.GetHeight())
}

func TestGIFConvertion(test *testing.T) {
a := assert.New(test)
img, output := newImage(a, "source.gif"), newOutput("gif-to-jpg.jpg")
err := img.SetImageFormat(ImageFormatJPEG).WriteImage(output)
err := img.SetImageFormat(ImageFormatJPEG).DropFrames().WriteImage(output)
a.NoError(err)

img, output = newImage(a, "source.gif"), newOutput("gif-to-png.png")
err = img.SetImageFormat(ImageFormatPNG).WriteImage(output)
err = img.SetImageFormat(ImageFormatPNG).DropFrames().WriteImage(output)
a.NoError(err)

img, output = newImage(a, "source.gif"), newOutput("gif-to-bmp.bmp")
err = img.SetImageFormat(ImageFormatBMP).WriteImage(output)
err = img.SetImageFormat(ImageFormatBMP).DropFrames().WriteImage(output)
a.NoError(err)

img, output = newImage(a, "source.gif"), newOutput("gif-to-avif.avif")
Expand All @@ -508,6 +508,6 @@ func TestGIFConvertion(test *testing.T) {
img, err = NewImage(output)
a.NoError(err)

a.Equal(300, img.GetWidth())
a.Equal(300, img.GetHeight())
a.Equal(96, img.GetWidth())
a.Equal(96, img.GetHeight())
}

0 comments on commit 63fcb5e

Please sign in to comment.