Documentation ¶
Index ¶
- Variables
- func BestIcoPage(r io.Reader) (int, int, error)
- func RegisterFormat(magic string, decodeMeta DecodeMetaFunc)
- type BmpFormatError
- type DecodeMetaFunc
- type IcoMeta
- type JpegFormatError
- type Meta
- func DecodeBmpMeta(r io.Reader) (Meta, error)
- func DecodeGifMeta(r io.Reader) (Meta, error)
- func DecodeHeicMeta(r io.Reader) (Meta, error)
- func DecodeJpegMeta(rr io.Reader) (Meta, error)
- func DecodeMeta(r io.Reader) (Meta, error)
- func DecodePngMeta(r io.Reader) (Meta, error)
- func DecodeTiffMeta(rr io.Reader) (Meta, error)
- func DecodeWebpMeta(r io.Reader) (Meta, error)
- type PngFormatError
- type TiffFormatError
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFormat = errors.New("unknown image format")
)
View Source
var ErrWebpInvalidFormat = errors.New("webp: invalid format")
Functions ¶
func RegisterFormat ¶
func RegisterFormat(magic string, decodeMeta DecodeMetaFunc)
Types ¶
type BmpFormatError ¶
type BmpFormatError string
func (BmpFormatError) Error ¶
func (e BmpFormatError) Error() string
type IcoMeta ¶
type IcoMeta struct { Meta // contains filtered or unexported fields }
func (*IcoMeta) BestImageOffset ¶
func (*IcoMeta) BestImageSize ¶
type JpegFormatError ¶
type JpegFormatError string
func (JpegFormatError) Error ¶
func (e JpegFormatError) Error() string
type PngFormatError ¶
type PngFormatError string
func (PngFormatError) Error ¶
func (e PngFormatError) Error() string
type TiffFormatError ¶
type TiffFormatError string
func (TiffFormatError) Error ¶
func (e TiffFormatError) Error() string
Click to show internal directories.
Click to hide internal directories.