package
Version:
v0.12.2
Opens a new window with list of versions in this module.
Published: Sep 26, 2021
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package image provides functionality to create thumbnails, decode
and recognise images
EncodeThumbnail encodes a given image into a JPEG thumbnail given
maximum dimensions and then returns its byte contents
Type represents an image format
const (
PNG Type = iota
JPEG
GIF
WEBP
TIFF
BMP
)
InferType attempts to guess a files image type based
on its filepath and fails if not possible
Decode decodes an image given its type
MimeType returns the image mimetype, used for sending the image over the web
Source Files
¶
Click to show internal directories.
Click to hide internal directories.