gifopt

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 3 Imported by: 0

README

gifopt

Go Report Card CI GoDoc

Simple Interframe Gif Optimizer

Install

From Source
go install github.com/donatj/gifopt/cmd/gifopt@latest
From Binary

see: Releases.

Documentation

Index

Constants

View Source
const (
	// MaxDistance is the result of calculating dist(color.White, color.Transparent)
	// It is slightly less than MaxUint32 and shouldn't be swaped for it.
	MaxDistance = 4294836224
)

Variables

This section is empty.

Functions

func InterframeCompress

func InterframeCompress(g *gif.GIF, limit uint32) *gif.GIF

InterframeCompress helps optimize gifs by analyzing colors across frames and setting pixels to transparent if they are below a threshold difference.

InterframeCompress is a lossy method of removing pixels to allowing gifs LZW compression to better do its job.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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