thumbnail

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

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

Go to latest
Published: May 1, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package thumbnail generuje miniaturki z większych obrazów. Aktualnie obsługiwane są tylko obrazy JPEG.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Image

func Image(src image.Image) image.Image

Image zwraca miniaturową wersję obrazu źródłowego (src).

func ImageFile

func ImageFile(infile string) (string, error)

ImageFile odczytuje obraz z infile i zapisuje jego miniatur w tym samym katalogu. Zwraca wygenerowaną nazwę pliku, np. "foo.thumb.jpg".

func ImageFile2

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

ImageFile2 odczytuje obraz z infile i zapisuje jego miniaturę w outfile.

func ImageStream

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

ImageStream odczytuje obraz z r i zapisuje jego wersję miniaturową w zmiennej w.

Types

This section is empty.

Jump to

Keyboard shortcuts

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