Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StoreEncodedImage ¶
func StoreEncodedImage(ctx context.Context, encoded *EncodedImage, opts StoreOptions) (string, error)
StoreEncodedImage writes an already resized/encoded image to DestURL (or a temp file when empty). It returns the destination URL.
Types ¶
type EncodedImage ¶
func EncodeToFit ¶
func EncodeToFit(raw []byte, options Options) (*EncodedImage, error)
type Options ¶
func NormalizeOptions ¶
type StoreOptions ¶
type StoreOptions struct {
// DestURL is an AFS URL (typically file://...). When empty, a file:// URL
// under the system temp directory is generated.
DestURL string
}
Click to show internal directories.
Click to hide internal directories.