Versions in this module Expand all Collapse all v0 v0.1.0 Mar 15, 2018 Changes in this version + var ErrUnsupportedFileType = errors.New("unsupported file type") + func FitCrop(img image.Image) image.Image + func RemoveExif(r io.Reader) (io.Reader, error) + type Image struct + Image image.Image + OriginalMIMEType MIMEType + Quality int + func Decode(file io.Reader) (*Image, error) + func (img *Image) EncodeJPEG(writer io.Writer) error + func (img *Image) FitCrop() + type MIMEType uint8 + const GIF + const JPEG + const PNG + const UndefinedType + const WEBP + func DetectMimeType(fileHeader []byte) MIMEType + func MIMETypeByType(typ string) MIMEType + func (m MIMEType) Ext() string + func (m MIMEType) String() string