Versions in this module Expand all Collapse all v1 v1.0.0 Sep 10, 2020 Changes in this version + const Default + const JPEG + const PNG + func ComposeCMYK(width int, height int, requests []*ComposeImageRequest) image.Image + func ComposeRGBA(width int, height int, requests []*ComposeImageRequest) image.Image + func LoadFont(path string, size float64) (font.Face, error) + func Open(path string) (image.Image, error) + func Resize(src image.Image, width, height int) *image.NRGBA + func ResizeToFitLongSide(src image.Image, size int) *image.NRGBA + func Write(w io.Writer, img image.Image, ft FormatType) error + type ComposeImageRequest struct + type FormatType int + func (ft FormatType) ImagingFormat() imaging.Format + type GomaType struct + ContentType string + FormatType FormatType + type StorageService struct + func NewStorageService(ctx context.Context, gcs *storage.Client) *StorageService + func (s *StorageService) AddObjectACL(ctx context.Context, bucket string, object string, entity storage.ACLEntity, ...) error + func (s *StorageService) Read(ctx context.Context, bucket string, object string) (image.Image, *GomaType, error) + func (s *StorageService) Write(ctx context.Context, img image.Image, ft FormatType, bucket string, ...) (rerr error) + type TextService struct + BaseFont font.Face + EmojiFont font.Face + func NewTextService(ctx context.Context, baseFont font.Face, emojiFont font.Face) *TextService + func (s *TextService) Draw(dst draw.Image, spacing float64, width fixed.Int26_6, fg image.Image, ...) + type WithStorageWriteOption func(ctx context.Context, oh *storage.ObjectHandle, w *storage.Writer) error + func WithMaxAge(age int) WithStorageWriteOption