I'd like to add the following addendum to my post. The images composite as expected if instead of trying to composite them in GAE, I instead composite them in the browser using HTML5 canvas code.
I have assumed that since several of these images are in the 750K range that I need to composite them on the server and reduce the bandwidth of sending multiple images over http. Can anyone comment on this assumption. 1) Is the speed of GAE compositing multiple 1M images and downloading a single image compared to downloading those same multiple images to the browser much faster? 2) Is the GAE cost of CPU for compositing comparable to GAE cost for bandwidth? On Jan 3, 3:01 pm, mikaye <mik...@gmail.com> wrote: > The code for image compositing doesn't appear to honor a PNGs > transparency. Has anyone been able to successfully composite a > transparent png over another image in the latest version of the SDK > (1.6.1). I have seen some posts > (http://groups.google.com/group/google-appengine/browse_thread/thread/... > ) and a reference to a fixed defect on the python side of GAE and some > posts about applying a watermark but it's unclear that this actually > works now. There's > alsohttp://groups.google.com/group/google-appengine-java/browse_thread/th... > where the solution was to incorporate a GWT canvas. > > I have something along the lines of, > > Image image = null; > List<Composite> composites = new ArrayList<Composite>(); > > Iterator<ImageObj> iterator = images.iterator(); > while (iterator.hasNext()) { > ImageObj io = (ImageObj)iterator.next(); > > //returns an Image > image = io.getImage(someWidth, someHeight); > > composites.add(ImagesServiceFactory.makeComposite(image, io.x, io.y, > 1.0f, Composite.Anchor.TOP_LEFT)); > > } > > //Image newImage = > ImagesServiceFactory.getImagesService().composite(composites, width, > height, 0xffffffffL); > image = ImagesServiceFactory.getImagesService().composite(composites, > width, height, 0); > > Where some images are JPEGs and some are PNGs with transparency. -- 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-java@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.