Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeSquare ¶
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.
Click to show internal directories.
Click to hide internal directories.