Results 1 to 4 of 4

Thread: Photo Editing

  1. #1
    stekun is offline Member
    Join Date
    Nov 2008
    Posts
    1
    Rep Power
    0

    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

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    7

    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

  3. #3
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    6

    Default

    First, why write it as an applet?

    Second, why not just use The Gimp? its free, open source, etc.

  4. #4
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    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.

Similar Threads

  1. JTable editing with Mouse
    By Gajesh Tripathi in forum AWT / Swing
    Replies: 0
    Last Post: 10-11-2008, 08:34 AM
  2. jTable Cell editing
    By mahaling_m in forum AWT / Swing
    Replies: 0
    Last Post: 06-23-2008, 08:17 AM
  3. Editing video frames in JMF
    By russ2620 in forum Networking
    Replies: 0
    Last Post: 05-30-2008, 11:26 PM
  4. get Photo taken date
    By nancyhung in forum New To Java
    Replies: 2
    Last Post: 04-07-2008, 05:10 PM
  5. Connect Java application to photo editor
    By syellows in forum Advanced Java
    Replies: 1
    Last Post: 11-21-2007, 12:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •