So if I save an image into the blob store then load it from the blob
store I can work on it as long as the result is smaller than 1
megabyte.

this would be extremely inefficient in my case:

350k Jpeg stored as the primary image
10k Thumbnail created from that image

I do not need to use blob store for these cases.

current process:

Get bits >> resize bits >> Save Bits

Proposed process:

Get bits >> save to Blob store >> Read from blob store >> resize bits
>> save bits

Since I am not storing anything larger than 1 megabyte I don't need to
keep the blog store around so add in a delete to delete this temporary
blob store item.

Plus I would need to turn on billing to even get this to work.

so even though there is a work around here, I say it is still
desirable for the Google App team to take a look at this and see that
the current limitations on the Image API are not reasonable.


On Jun 15, 3:17 pm, Jaroslav Záruba <[email protected]> wrote:
> On Tue, Jun 15, 2010 at 7:33 PM, Kelly A <[email protected]> wrote:
> > Jaroslav,
>
> > Yes you can save but if you call images.resize(imagebits, 100, 100) on
> > an image that is greater than 1 megabyte it will throw
> > "RequestTooLargeError: The request to API call images.Transform() was
> > too large.".
>
> http://code.google.com/appengine/docs/java/images/overview.html#Trans...
>
> import com.google.appengine.api.images.Image;
> import com.google.appengine.api.images.ImagesService;
> import com.google.appengine.api.images.ImagesServiceFactory;
> import com.google.appengine.api.images.Transform;
>
> // ...
>         BlobKey blobKey;  // ...
>
>         ImagesService imagesService = ImagesServiceFactory.getImagesService();
>
>         Image oldImage = ImagesServiceFactory.makeImageFromBlob(blobKey);
>         Transform resize = ImagesServiceFactory.makeResize(200, 300);
>
>         Image newImage = imagesService.applyTransform(resize, oldImage);
>
>         byte[] newImageData = newImage.getImageData();

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to