thumbnail

package
v0.0.0-...-c00ecf5 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Image

func Image(src image.Image) image.Image

Image returns a thumbnail-size version of src.

func ImageFile

func ImageFile(infile string) (string, error)

ImageFile reads an image from infile and writes a thumbnail-size version of it in the same directory. It returns the generated file name, e.g., "foo.thumg.jpg".

func ImageFile2

func ImageFile2(outfile, infile string) (err error)

ImageFile2 reads an image form the infile and writes a thumbnail-size version of it to outfile.

func ImageStream

func ImageStream(w io.Writer, r io.Reader) error

ImageStream reads an image from r and writes a thumbnail-size version of it to w.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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