gifx

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

package gifx. ref:

https://ezgif.com
https://stackoverflow.com/questions/33295023/how-to-split-gif-into-images

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gif

type Gif struct {
	// contains filtered or unexported fields
}

func Generate

func Generate(images []*img.Image, delay []int, loopCount int) (*Gif, error)

func LoadFromLocalFile

func LoadFromLocalFile(path string) (*Gif, error)

func LoadFromReader

func LoadFromReader(reader io.Reader) (*Gif, error)

func (*Gif) AddWaterMark

func (src *Gif) AddWaterMark(watermark *img.Image, anchor imaging.Anchor, paddingX int, paddingY int, opacity float64) (*Gif, error)

AddWaterMark adds a watermark to this image. 为次图像添加水印

func (*Gif) GetSource

func (src *Gif) GetSource() *gif.GIF

Jump to

Keyboard shortcuts

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