Documentation ¶
Overview ¶
Package img has the functions to convert, compress and resize the images.
Index ¶
- Variables
- func Bytes(name string) (uint64, error)
- func Export(name, dest string, amiga bool) (string, error)
- func Make(w io.Writer, cfg conf.Config, name, uuid string, amiga bool) error
- func Reduce(w io.Writer, named, uuid string) (string, error)
- func Resize(w io.Writer, name string) error
- func Type(name string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Export ¶ added in v1.11.0
Export any supported text based named file to a compressed PNG image. helpful: https://www.programming-books.io/essential/go /images-png-jpeg-bmp-tiff-webp-vp8-gif-c84a45304ec3498081c67aa1ea0d9c49.
func Make ¶ added in v1.11.0
Make both PNG and Webp preview images and a 400x PNG thumbnail from the named text files. Name is the source text file required for conversion to an image. UUID is the universal ID used for the image filename. When the amiga bool is true the image text will use an Amiga era Topaz+, 80x50 font.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.