You do not need to save the cropped image. What I would suggest is that, you save the original image and get a *serving url *for it using getServingUrl() <https://cloud.google.com/appengine/docs/java/javadoc/com/google/appengine/api/images/ImagesService#getServingUrl(com.google.appengine.api.blobstore.BlobKey,%20int,%20boolean)> method (for java).
You can resize and crop the image dynamically by specifying the arguments in the URL. The available arguments are: - =sxx where xx is an integer from 0–1600 representing the length, in pixels, of the image's longest side. For example, adding =s32 resizes the image so its longest dimension is 32 pixels. - =sxx-c where *xx* is an integer from 0–1600 representing the cropped image size in pixels, and -c tells the system to crop the image. # Resize the image to 32 pixels (aspect-ratio preserved) http://lhx.ggpht.com/randomStringImageId=*s32* # Crop the image to 32 pixels http://lhx.ggpht.com/randomStringImageId=*s32-c* There are many more transformations possible. Check them out here <https://stackoverflow.com/questions/25148567/list-of-all-the-app-engine-images-service-get-serving-url-uri-options> . P.S this probably doesn't exactly answer your question, but *how *you get the serving url is runtime dependent. For java, the documentation is here <https://cloud.google.com/appengine/docs/java/images/#using_the_if_lang_is_java_imageservicefactory_endif_if_lang_is_python_image_endif_class> . How its done in java. (gcsFilename would be your image stored in GCS) public static String getServingURL(GcsFilename gcsFilename) { final String bucketName = gcsFilename.getBucketName(); final String objectName = gcsFilename.getObjectName(); final ServingUrlOptions servingUrlOptions = ServingUrlOptions.Builder.withGoogleStorageFileName("/gs/" + bucketName + "/" + objectName); return ImagesServiceFactory.getImagesService().getServingUrl(servingUrlOptions); } -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/d2e226a3-646e-4cde-88c2-93d2dcbb66ea%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
