Google App Engine

The image package

import "appengine/image"

Introduction

Package image provides image services.

Index

func DeleteServingURL(c appengine.Context, key appengine.BlobKey) error
func ServingURL(c appengine.Context, key appengine.BlobKey, opts *ServingURLOptions) (*url.URL, error)
type ServingURLOptions

func DeleteServingURL

func DeleteServingURL(c appengine.Context, key appengine.BlobKey) error

DeleteServingURL deletes the serving URL for an image.

func ServingURL

func ServingURL(c appengine.Context, key appengine.BlobKey, opts *ServingURLOptions) (*url.URL, error)

ServingURL returns a URL that will serve an image from Blobstore.

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
}

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.