Results 1 to 4 of 4
Thread: Photo Editing
- 11-17-2008, 11:47 PM #1
Member
- Join Date
- Nov 2008
- Posts
- 1
- Rep Power
- 0
Photo Editing
Hello,
I am attempting to write an applet to be used online that will allow a user to:
1- Upload a photo
2- Perform basic edits (Stuff like resize, crop, rotate, etc.)
3- Download the edited photo
Does anyone know of any existing open source libraries or projects that are available with these kind of tools? Either that, or is anyone aware of some basic tutorials? Technical documents are okay. I'm well-versed in Java, but have not done much WYSIWYG-type photo manipulation, or much work with image files at all. (Most of my work to date has been with databases and other computation application.)
Thanks,
Steve
- 11-18-2008, 01:30 PM #2
There are some image manipulation libs in Java but I found them incompletey developed and difficult to grasp.
Try Web4j and ( especailly ) Java Tips on the Navbar at the left on this site. There seems to be almost always some cannoical code from Java Tips to do pretty much just about anything.Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
- 11-19-2008, 12:27 AM #3
First, why write it as an applet?
Second, why not just use The Gimp? its free, open source, etc.
- 02-23-2010, 05:11 AM #4
Senior Member
- Join Date
- Jan 2009
- Posts
- 671
- Rep Power
- 5
As far as image editing goes, it takes a bit of getting used to, but the Graphics2D API does everything you are discussing. If your image is a BufferedImage (which it is if you used ImagIO to get it), then you can create a new BufferedImage, get it's graphics context, cast it to a Graphics2D (all graphics contexts are Graphics2D types since 1.2), and apply any kind of AffineTransform you want, then just call one of the drawImage methods of your graphics context to render back to the BufferedImage....and finally, use ImageIO again to write it out. (don't forget to dispose teh graphics context).
It's really pretty simple once you know what elements of the API to use.
Similar Threads
-
JTable editing with Mouse
By Gajesh Tripathi in forum AWT / SwingReplies: 0Last Post: 10-11-2008, 08:34 AM -
jTable Cell editing
By mahaling_m in forum AWT / SwingReplies: 0Last Post: 06-23-2008, 08:17 AM -
Editing video frames in JMF
By russ2620 in forum NetworkingReplies: 0Last Post: 05-30-2008, 11:26 PM -
get Photo taken date
By nancyhung in forum New To JavaReplies: 2Last Post: 04-07-2008, 05:10 PM -
Connect Java application to photo editor
By syellows in forum Advanced JavaReplies: 1Last Post: 11-21-2007, 12:09 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks