El paquete de imagen

import "google.golang.org/appengine/image"

Introducción

La imagen del paquete proporciona servicios de imagen.

Índice

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

func DeleteServingURL

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

DeleteServingURL borra la URL entregada para una imagen.

func ServingURL

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

ServingURL muestra una URL que entregará una imagen de 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
}
¿Te ha resultado útil esta página? Enviar comentarios:

Enviar comentarios sobre...

Entorno estándar de App Engine para Go