gifx

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 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 CreateGif added in v0.0.4

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

Generate generates gif using the given images.

用给定的一系列图片生成一张gif。

func LoadFromLocalFile

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

LoadFromLocalFile 从文件加载gif

func LoadFromReader

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

LoadFromReader 从流加载gif

func NewGif added in v0.0.4

func NewGif(gif *gif.GIF) *Gif

NewGif 构造一个新Gif类

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

获取原gif

Jump to

Keyboard shortcuts

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