Documentation
¶
Overview ¶
Package img enables basic image operations with automatic features like orientation correction and EXIF / ICC profile preservation, so you can transform photos without losing important metadata.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
Image contains an image.Image plus any metadata we want to preserve through future image transformations.
func Decode ¶
Decode decodes an image and changes its orientation according to the EXIF orientation tag (if present), while also preserving any ICC profile (APP2 data) in the returned Image.
func (Image) Bytes ¶
Bytes returns a slice of length i.Len() holding the unread portion of the Image's buffer.
Click to show internal directories.
Click to hide internal directories.