Hello,

Image API only works with the BlobStore?

even with the URL below showing me otherwise ..
http://code.google.com/intl/pt-BR/appengine/docs/java/images/overview.html

using:

ImagesServiceFactory.makeImageFromBlob (blobKey);

returns an Image object with attributes format, width and height
filled.
cool ..

but ..

ImagesServiceFactory.makeImage (bytes);

and bytes that can come from a Blob field or by a reading of an image
file on a FileInputStream
returns an Image object, filled with imageData ... but height,size,
format is null ..

when I try to resize the image .. the following exception is thrown

java.lang.IllegalArgumentException: Unknown image type 0
at java.awt.image.BufferedImage. <init> (BufferedImage.java: 490)
atcom.google.appengine.api.images.dev.LocalImagesService.processTransform(LocalImagesService.java:
421)

code:

       Image oldimage ImagesServiceFactory.makeImage =(content);
       Transform ImagesServiceFactory.makeResize resize
=(this.getWidth (), this.getHeight ());
       Image newImage = imagesService.applyTransform
(resize,oldimage);

I have tried to inform the outputencoding:

Image newImage = imagesService.applyTransform (resize,oldimage,
OutputEncoding.JPEG);

and also outputsettings:

Suggestions?

-- 
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