gifresize: Index | Files | Directories

package gifresize

import ""

Package gifresize resizes animated gifs.

Frames in an animated gif aren't necessarily the same size, subsequent frames are overlayed on previous frames. Therefore, resizing the frames individually may cause problems due to aliasing of transparent pixels. This package tries to avoid this by building frames from all previous frames and resizing the frames as RGB.


Package Files


func Process Uses

func Process(w io.Writer, r io.Reader, transform TransformFunc) error

Process the GIF read from r, applying transform to each frame, and writing the result to w.

type TransformFunc Uses

type TransformFunc func(image.Image) image.Image

TransformFunc is a function that transforms an image.


exampleThe example tool demonstrates use of the gifresize package by resizing an image.

Package gifresize imports 5 packages (graph) and is imported by 3 packages. Updated 2018-10-18. Refresh now. Tools for package owners.