images

package
v2.0.0-...-73b7ba0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Duplicate

func Duplicate(name string, prefix string) (string, error)

Duplicate an image file and appends prefix to its name

func Generate

func Generate(n string, id string, d directories.Dir)

Generate a collection of site images.

func NewExt

func NewExt(name string, extension string) string

NewExt replaces or appends the extension to a file name.

func ToPng

func ToPng(src string, dest string, maxDimension int) error

ToPng converts any supported format to a compressed PNG image. helpful: https://www.programming-books.io/essential/go/images-png-jpeg-bmp-tiff-webp-vp8-gif-c84a45304ec3498081c67aa1ea0d9c49

func ToThumb

func ToThumb(file string, saveDir string, size int) error

ToThumb creates a thumb from an image that is size pixel in width and height.

func ToWebp

func ToWebp(src string, dest string) error

ToWebp converts any support format to a WebP image using a 3rd party library.

Types

This section is empty.

Jump to

Keyboard shortcuts

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