In our application we want user upload-able images to be shown in application. The image is re-sized to 150x200 and Thumbnail are stored in DB. Then we show images in browser using GWT RPC and retrieve base 64 encoded image.
But to show image in IE8 the data can only be max 32K. The question is can we make an image Transformation in GAE that reduce the image size. e.g. reduce the number of colors, reduce the quality....? I used ImagesServiceFactory.makeImFeelingLucky() BUT it does not help to reduce the size. Vlad PS the code snippet we used: -- Upload --- try { Image image = ImagesServiceFactory.makeImage(imageData); ImagesService imagesService = ImagesServiceFactory.getImagesService(); // 3x4 proportions, we show 150x200 image int width; int height; if (image.getWidth() * 4 / 3 < image.getHeight()) { height = 200; width = height * image.getWidth() / image.getHeight(); } else { width = 150; height = width * image.getHeight() / image.getWidth(); } Transform touchup = ImagesServiceFactory.makeImFeelingLucky(); Transform resize = ImagesServiceFactory.makeResize(width, height); CompositeTransform composite = ImagesServiceFactory.makeCompositeTransform(); composite.concatenate(touchup); composite.concatenate(resize); composite.concatenate(touchup); Image newImage = imagesService.applyTransform(composite, image, OutputEncoding.PNG); log.debug("new image size {}", newImage.getImageData().length); ---- -- Send to GWT client --- import com.google.appengine.repackaged.com.google.common.util.Base64; return Base64.encode(imageData); -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.