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\u003eThis package, \u003ccode\u003eimage\u003c/code\u003e, provides image services within the Google App Engine environment.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteServingURL\u003c/code\u003e function allows you to remove the serving URL associated with a specific image identified by its BlobKey.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServingURL\u003c/code\u003e function generates a URL to serve an image directly from Blobstore.\u003c/p\u003e\n"],["\u003cp\u003eThe type \u003ccode\u003eServingURLOptions\u003c/code\u003e allows you to define whether or not to use HTTPS, specify the max size, and specify whether to crop or not.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version is 2.0.6, with the documented version being 2.0.5, and a link is provided for more info on the package.\u003c/p\u003e\n"]]],[],null,["# Package google.golang.org/appengine/v2/image (v2.0.5)\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 }"]]