If you want to do everything client side you will have to use a Java applet. To do it with GWT you will have to upload the file to the server. Doing so depends on your server-side approach. Whichever approach you are using you should research multi-part form data for uploading a file. You will then need to save the file locally, or you could try to save the raw file data to a database. You will then need to expose the image via a RESTful GET which you can point an <img> tag at. Then once you integrate something similar to the UI libraries you suggested above you will then send the bounding box back up to the server and use Java image manipulation libraries to crop the image and then resave it in the method you used before. Remember, GWT can integrate with any javascript library, so you can wrap any of the UI libraries above with some JSNI methods.
On Sep 22, 9:02 pm, Josh Tinkham <[email protected]> wrote: > I'm building a costume database program for a local high school. I > want the kids to be able to take a picture of a costume, load the > memory stick on a PC and upload the pic via a FileUpload widget, then > present them with a photo cropping gui to cut down the picture. From > there the post-cropped pic goes back to the server and into a > database. > > There's lots of stuff on this forum saying I can't read the JPG > directly from the client browser, so I think that means I have to use > the form widget with an HTML servlet (right?). Once its on the > server, I need to get the pic back to the client (how do i do that)? > Then present it with a cropping mechanism. > > There are some really slick looking croppers on the web, but haven't > found anything on how to pull them into GWT: > Yahoo > ImageCropper:http://developer.yahoo.com/yui/examples/imagecropper/simple_crop.html > Kroppr:http://kroppr.rborn.info/ > Jcrop:http://deepliquid.com/content/Jcrop.html > > How can I get these overlaid on my picture, then get the results after > the user has accepted their crop operation so the numbers can be sent > back to the server to actually crop the pic? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" 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-web-toolkit?hl=en.
