> Currently my company is looking into developing an online application > to do simple image manipulation via the browser. A typical case > scenario is the application loads an image into memory and the user > can rotate, flip, crop, etc all in the browser. Then when the user is > satisfied, the application will save the image changes to disk. Thus > far I have been leveraging the Java Advanced Imaging (JAI) API to > automatically create thumbnails on the server-side after a user > uploads their images. However the next step is to give these users an > RIA experience in manipulating these uploaded images.
I happen to be building something similar in my spare time. :-) You'll need to be a bit tricky, since access to the local file system is obviously limited. Unfortunately Flex 1.5 only targets FP7, which doesn't have native file uploading. There are DHTML-based workarounds that should hold you; FP8 does in fact have native file uploading, and Flex 2 will of course take advantage of all this. Anyway, your architecture basically needs to be something like: 1. Client uploads image to server. 2. Server provides downscaled version of picture for manipulation. Zoomable detail regions a bonus. 3. Client previews manipulations (rotate, crop, etc.) interactively, builds up list of "actions". 4. Actions set to server to do the real work. 5. Server sends back updated image. I wrote a Flex component to allow rotation and region selection. There are probably some other tricks you could apply, and FP8+ will have much more extensive graphics filter capabilities that can also be used. In FP8+, you can actually do the real manipulations on the client and send the modified image back to the server, but my gut sez that it will "feel" better (and be more tolerant of slow client machines) to let the server do the heavy lifting. -Roger Roger Gonzalez mailto:[EMAIL PROTECTED] ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/