picture

package
v3.13.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 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