Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



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.