feat: autorotate

This commit is contained in:
Tomas 2020-08-04 19:40:07 +02:00
parent 0ae3ac43ce
commit 26b22e9a6f
28 changed files with 105 additions and 2 deletions

View file

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