fix(image): tests

This commit is contained in:
Tomas Aparicio 2015-04-08 00:00:13 +02:00
parent 4330593138
commit f525611b29
3 changed files with 64 additions and 0 deletions

View file

@ -87,6 +87,12 @@ func (i *Image) Flip() ([]byte, error) {
}
// Flop the image about the horizontal X axis
func (i *Image) Flop() ([]byte, error) {
options := Options{Flip: VERTICAL}
return i.Process(options)
}
// Convert image to another format
func (i *Image) Convert(t ImageType) ([]byte, error) {
options := Options{Type: t}
return i.Process(options)