google.golang.org/appengine/image 패키지(v1.6.8)

image 패키지는 이미지 서비스를 제공합니다.

함수

func DeleteServingURL

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

DeleteServingURL은 이미지의 제공 URL을 삭제합니다.

func ServingURL

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

ServingURL은 Blobstore에서 이미지를 제공할 URL을 반환합니다.

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
}