Click to See Complete Forum and Search --> : Cropping Images on the server with Java?


econnections
11-24-2005, 12:04 PM
Hi, I don't know if this question fits here of in the Graphic's forum?

I looking for code I can use in my web page that will allow users to view their wedding pictures and choose a 10x8 or 6x7 ratio for cropping. On selecting the ratio a rectangle would appear over the image that the user could position and size. Then on pressing OK the coordinates of the frame in relation to the picture are captured and used for cropping the origional picture.

Don't know where to start with this, any help would be much appreciated?

Cheers

Oak
11-27-2005, 04:25 AM
Here is an advanced imaging api for java:

http://java.sun.com/products/java-media/jai/

As far as interactively allowing the user to position the crop rectangle, you would have to create an applet and then get the applet to supply the required data to your java call.