Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-18-2008, 12:47 AM
Member
 
Join Date: Nov 2008
Posts: 1
Rep Power: 0
stekun is on a distinguished road
Default 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
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-18-2008, 02:30 PM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 1,018
Rep Power: 3
Nicholas Jordan is on a distinguished road
Default
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
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-19-2008, 01:27 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 571
Rep Power: 2
fishtoprecords is on a distinguished road
Default
First, why write it as an applet?

Second, why not just use The Gimp? its free, open source, etc.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 02-23-2010, 06:11 AM
Senior Member
 
Join Date: Jan 2009
Posts: 360
Rep Power: 2
toadaly is on a distinguished road
Default
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.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
JTable editing with Mouse Gajesh Tripathi AWT / Swing 0 10-11-2008 09:34 AM
jTable Cell editing mahaling_m AWT / Swing 0 06-23-2008 09:17 AM
Editing video frames in JMF russ2620 Networking 0 05-31-2008 12:26 AM
get Photo taken date nancyhung New To Java 2 04-07-2008 06:10 PM
Connect Java application to photo editor syellows Advanced Java 1 11-21-2007 01:09 AM


All times are GMT +2. The time now is 07:45 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org