mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-16 02:45:54 -07:00
feat: autorotate
This commit is contained in:
parent
0ae3ac43ce
commit
26b22e9a6f
28 changed files with 105 additions and 2 deletions
5
image.go
5
image.go
|
|
@ -154,6 +154,11 @@ func (i *Image) Rotate(a Angle) ([]byte, error) {
|
|||
return i.Process(options)
|
||||
}
|
||||
|
||||
// AutoRotate automatically rotates the image with no additional transformation based on the EXIF oritentation metadata, if available.
|
||||
func (i *Image) AutoRotate() ([]byte, error) {
|
||||
return i.Process(Options{autoRotateOnly: true})
|
||||
}
|
||||
|
||||
// Flip flips the image about the vertical Y axis.
|
||||
func (i *Image) Flip() ([]byte, error) {
|
||||
options := Options{Flip: true}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue