Thursday, September 23, 2010

Re: Crop a photo stored locally

Josh,

If I were doing it, I think I'd start off with a route something like
this:

- User uploads photo
- Servlet saves the photo somewhere (database or file system)
- Client page displays the image (using Image widget)
- User can drag and drop to create a cropping rectangle over the image
- When user is done, use RPC to send the size and location (relative
to the Image widget) to the server
- Server side code crops the image based on that size and location and
saves to database or file system

HTH,
Chad

On Sep 22, 10:02 pm, Josh Tinkham <unitin...@gmail.com> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment