Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ALPHHeader ¶
type ANIMHeader ¶
type ANMFHeader ¶
type AnimatedWEBP ¶
type AnimatedWEBP struct { Frames []Frame Header ANIMHeader Config image.Config }
AnimatedWEBP is the struct of a AnimatedWEBP container and the image data contained within.
func DecodeAnimated ¶
func DecodeAnimated(r io.Reader) (*AnimatedWEBP, error)
type Frame ¶
type Frame struct { Header ANMFHeader Frame image.Image }
type VP8XHeader ¶
type VP8XHeader struct { ICCProfile bool Alpha bool ExifMetadata bool XmpMetadata bool Animation bool CanvasWidth uint32 CanvasHeight uint32 }
func DecodeVP8XHeader ¶
func DecodeVP8XHeader(r io.Reader) (*VP8XHeader, error)
DecodeVP8XHeader will return the decoded VP8XHeader if this file is in the Extended File Format as defined by the webp specification. The VP8X chunk must be the first chunk of the file. If the first chunk of the file is anything else, it is not in the extended format and this will return a nil VP8XHeader. An error is only returned if the chunk is found, but invalid or a generic io.Reader error occurs.
Click to show internal directories.
Click to hide internal directories.