Documentation ¶
Overview ¶
Package rotate provides methods for rotating images.
Index ¶
- func GetImageOrientation(ctx context.Context, r io.Reader) (string, error)
- func NewRotateTransformation(ctx context.Context, uri string) (transform.Transformation, error)
- func RotateImageWithDegrees(ctx context.Context, im image.Image, degrees float64) (image.Image, error)
- func RotateImageWithOrientation(ctx context.Context, im image.Image, orientation string) (image.Image, error)
- type RotateTransformation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImageOrientation ¶
GetImageOrientation returns the string representation of the image orientation (0-8) in 'r'.
func NewRotateTransformation ¶
NewRotateWriter returns a new `RotateTransformation` instance configure by 'uri' in the form of:
rotate://?orientation={ORIENTATION}
Where {ORIENTATION} is expected to be a valid EXIF orientation string (1-8).
Types ¶
type RotateTransformation ¶
type RotateTransformation struct { transform.Transformation // contains filtered or unexported fields }
RotateTransformation is a struct that implements the `Transformation` interface for rotating images.
Click to show internal directories.
Click to hide internal directories.