Documentation
¶
Overview ¶
Package decode wraps image.Decode and registers extra formats (WebP, JXL) so the caller can hand off any supported file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AnimatedGIF ¶
type AnimatedGIF struct {
Frames []*image.RGBA // composed, one per source frame
DelaysCS []int // per-frame delay in centiseconds
LoopCount int // gif.GIF.LoopCount (0 = forever)
}
AnimatedGIF holds the result of decoding every frame of an animated GIF with disposal methods applied, so each frame is the full composed image you'd see at that moment.
func AllFramesGIF ¶
func AllFramesGIF(path string) (*AnimatedGIF, error)
AllFramesGIF decodes every frame of an animated GIF, composing disposal methods. Use this when you want to process each visible frame, not just the raw delta layers stdlib returns.
Click to show internal directories.
Click to hide internal directories.