mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-08 23:18:19 -07:00
fix(image): tests
This commit is contained in:
parent
4330593138
commit
f525611b29
3 changed files with 64 additions and 0 deletions
6
image.go
6
image.go
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue