picture

package
v0.0.0-...-60b8695 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeSquare

func MakeSquare(r io.Reader, dimensions int) (*ttnpb.Picture, error)

MakeSquare makes a square version of the image read from r, with the given maximum dimensions.

func Store

func Store(ctx context.Context, bucket *blob.Bucket, prefix string, pic *ttnpb.Picture, sizes ...int) (*ttnpb.Picture, error)

Store the picture in the bucket, under the given prefix. If the picture is larger than the given sizes, this will also generate thumbnails and store them as well.

Types

This section is empty.

Jump to

Keyboard shortcuts

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