feat(#20): support flop operation (interface broken, sorry im still beta)

This commit is contained in:
Tomas Aparicio 2015-04-08 00:44:44 +02:00
parent 2d17baca0d
commit 414fe40c91
5 changed files with 25 additions and 7 deletions

View file

@ -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 {