mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-14 01:46:18 -07:00
feat(#20): support flop operation (interface broken, sorry im still beta)
This commit is contained in:
parent
2d17baca0d
commit
414fe40c91
5 changed files with 25 additions and 7 deletions
|
|
@ -112,6 +112,14 @@ func TestImageFlip(t *testing.T) {
|
|||
Write("fixtures/test_flip_out.jpg", buf)
|
||||
}
|
||||
|
||||
func TestImageFlop(t *testing.T) {
|
||||
buf, err := initImage("test.jpg").Flop()
|
||||
if err != nil {
|
||||
t.Errorf("Cannot process the image: %#v", err)
|
||||
}
|
||||
Write("fixtures/test_flop_out.jpg", buf)
|
||||
}
|
||||
|
||||
func TestImageRotate(t *testing.T) {
|
||||
buf, err := initImage("test_flip_out.jpg").Rotate(90)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue