gif

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2022 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package gif provides animated GIF image format support for deanimator.

Index

Constants

This section is empty.

Variables

View Source
var DecodeFunc = parser.Decode

DecodeFunc lets you override the gif parser decode func. This implementation is our own since the default in the std lib parses all frames even if only returning the first one. once the std library is updated, this could be changed to be the default. See: https://github.com/golang/go/pull/46813

Functions

func IsAnimated

func IsAnimated(r io.Reader) (bool, error)

func RenderFirstFrame

func RenderFirstFrame(r io.Reader, w io.Writer) error

Types

This section is empty.

Directories

Path Synopsis
A modified version of golang 1.18's image/gif/reader.go Only reads the first frame of a gif Also includes patch from https://go-review.googlesource.com/c/go/+/329329
A modified version of golang 1.18's image/gif/reader.go Only reads the first frame of a gif Also includes patch from https://go-review.googlesource.com/c/go/+/329329

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL