GAE Blobstore: ImagesService.getServingUrl() gives me smaller images
Asked Answered
B

1

9

I'm uploading some images to GAE's Blobstore. Upload goes succesfully and when i see the images in GAE console i can see that they're stored in the expected size and resolution.

According to this site, to get a URL to the uploaded image i can use this:

BlobKey blobKey = (BlobKey) blobs.get("image");
ImagesService imagesService = ImagesServiceFactory.getImagesService();
String imageUrl = imagesService.getServingUrl(blobKey);

The resulting URL points to a smaller version of the uploaded images (in size and quality). How can i get a URL to the full size image stored in Blobstore?

Belfast answered 8/3, 2012 at 17:33 Comment(0)
A
19

you can append =s0 parameter after the url to get full sized image.

Atalie answered 8/3, 2012 at 17:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.