extract

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package extract provides "extract" sub command: extract all images from a GIF image.

Index

Constants

This section is empty.

Variables

View Source
var Extract = subcmd.DefineCommand("extract", "extract each frames from GIF", ExtractAll)
View Source
var ExtractSet = subcmd.DefineSet("extract", "extract frames from animation GIF",
	subcmd.DefineCommand("one", "extract a representative frame from GIF", ExtractRepFrame),
	subcmd.DefineCommand("representative", "extract a representative frame from GIF", ExtractRepFrame),
	subcmd.DefineCommand("rep", "extract a representative frame from GIF", ExtractRepFrame),
	subcmd.DefineCommand("cframes", "extract all composed frames from GIF", ExtractComposedFrames),
)

Functions

func ExtractAll

func ExtractAll(ctx context.Context, args []string) error

func ExtractComposedFrames added in v0.0.2

func ExtractComposedFrames(ctx context.Context, args []string) error

func ExtractRepFrame added in v0.0.2

func ExtractRepFrame(ctx context.Context, args []string) error

ExtractRepFrame extracts a representative frame from an animation GIF. "representative" means most "informational": highest entropy of image.

Types

type Lab

type Lab struct {
	L float64
	A float64
	B float64
}

Jump to

Keyboard shortcuts

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