ServingURL returns a URL that will serve an image from Blobstore.
ServingURLOptions
typeServingURLOptionsstruct{Securebool// 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.SizeintCropbool}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eimage\u003c/code\u003e package provides image services for Google App Engine applications.\u003c/p\u003e\n"],["\u003cp\u003eIt includes functions like \u003ccode\u003eDeleteServingURL\u003c/code\u003e to remove serving URLs for images.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServingURL\u003c/code\u003e function generates URLs to serve images directly from Blobstore.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServingURLOptions\u003c/code\u003e allows customization of the served image's properties, such as secure delivery, size, and cropping.\u003c/p\u003e\n"],["\u003cp\u003eThe most recent version of the package is \u003ccode\u003e2.0.6\u003c/code\u003e and more information on the package can be found at pkg.go.dev.\u003c/p\u003e\n"]]],[],null,["# Package google.golang.org/appengine/v2/image (v2.0.6)\n\n**Note:** To get more information about this package, such as access to older versions, view [this package on pkg.go.dev](https://pkg.go.dev/google.golang.org/appengine/v2/image). \n\u003cbr /\u003e\n\nPackage image provides image services. \n\nFunctions\n---------\n\n### func DeleteServingURL\n\n func DeleteServingURL(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, key https://pkg.go.dev/google.golang.org/appengine/v2.https://pkg.go.dev/google.golang.org/appengine/v2#BlobKey) https://pkg.go.dev/builtin#error\n\nDeleteServingURL deletes the serving URL for an image. \n\n### func ServingURL\n\n func ServingURL(c https://pkg.go.dev/context.https://pkg.go.dev/context#Context, key https://pkg.go.dev/google.golang.org/appengine/v2.https://pkg.go.dev/google.golang.org/appengine/v2#BlobKey, opts *#google_golang_org_appengine_v2_image_ServingURLOptions) (*https://pkg.go.dev/net/url.https://pkg.go.dev/net/url#URL, https://pkg.go.dev/builtin#error)\n\nServingURL returns a URL that will serve an image from Blobstore. \n\nServingURLOptions\n-----------------\n\n type ServingURLOptions struct {\n \tSecure https://pkg.go.dev/builtin#bool // whether the URL should use HTTPS\n\n \t// Size must be between zero and 1600.\n \t// If Size is non-zero, a resized version of the image is served,\n \t// and Size is the served image's longest dimension. The aspect ratio is preserved.\n \t// If Crop is true the image is cropped from the center instead of being resized.\n \tSize https://pkg.go.dev/builtin#int\n \tCrop https://pkg.go.dev/builtin#bool\n }"]]