thumbnail

package
v0.0.0-...-0deda60 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

The thumbnail package produces thumbnail-size images from larger images. Only JPEG images are currently supported.

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.thumb.jpeg".

func ImageFile2

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

ImageFile2 reads an image from 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.

Jump to

Keyboard shortcuts

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