package image
import "google.golang.org/appengine/image"
Package image provides image services.
Index ¶
- func DeleteServingURL(c context.Context, key appengine.BlobKey) error
- func ServingURL(c context.Context, key appengine.BlobKey, opts *ServingURLOptions) (*url.URL, error)
- type ServingURLOptions
Functions ¶
func DeleteServingURL ¶
DeleteServingURL deletes the serving URL for an image.
func ServingURL ¶
func ServingURL(c context.Context, key appengine.BlobKey, opts *ServingURLOptions) (*url.URL, error)
ServingURL returns a URL that will serve an image from Blobstore.
Types ¶
type ServingURLOptions ¶
type ServingURLOptions struct { Secure bool // whether the URL should use HTTPS // Size must be between zero and 1600. // If Size is non-zero, a resized version of the image is served, // and Size is the served image's longest dimension. The aspect ratio is preserved. // If Crop is true the image is cropped from the center instead of being resized. Size int Crop bool }
Source Files ¶
image.go
- Version
- v1.2.0
- Published
- Sep 18, 2018
- Platform
- windows/amd64
- Imports
- 6 packages
- Last checked
- 2 hours ago –
Tools for package owners.