File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JPG / TIFF viewer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JPG / TIFF viewer" Watch "JPG / TIFF viewer" New topic
Author

JPG / TIFF viewer

Himalay Majumdar
Ranch Hand

Joined: Sep 28, 2008
Posts: 324
I need to find a JPG / TIFF viewer which should do the following:
- be embedded into Web Browser
- zoom, print, export, rotation
- be able creating annotations inside of an image and uploading the updated image back to server

If someone knows a good viewer / used to work in this area, your advice will be greatly appreciated.

Thank you.

SCJP 1.6, SCWCD 5.0, SCBCD 5.0 [loading..]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
Since you posted this in a Java forum, are you looking for an applet solution?


Ping & DNS - updated with new look and Ping home screen widget
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19544
    
  16

If ImageIO can support TIFF files (can't remember if it does so automatically) you can use BufferedImage for all operations. Keep in mind that to use a BufferedImage on a web application you will probably need to use an Applet (JApplet) as Ulf suggested. With servlets / JSP pages it's still possible to use BufferedImage but you will probably need to store it in your session somehow* and render it (using ImageIO) every time you need to display it.

* BufferedImage is not Serializable...


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Himalay Majumdar
Ranch Hand

Joined: Sep 28, 2008
Posts: 324
Thanks for you reply. We are using a Seam-JSF application. I hope this solution fits into it. Thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
I can't tell form your reply whether you are looking for a client-side solution (like an applet), or if it needs to be HTML/CSS/JavaScript.
Himalay Majumdar
Ranch Hand

Joined: Sep 28, 2008
Posts: 324
I am looking for options available in client side..i.e using Applets or may be embedding .swf (flash file) into the html. Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39550
    
  27
A good starting point might be ImageJ - it's an applet and application that performs image manipulation, is open source, highly capable and highly customizable (which you'd probably want to do as its default configuration is unlikely to be what you're looking for).
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19544
    
  16

I'll move this to our JSF forum, maybe someone there has better ideas of how to do this. They may confirm the applet / SWF option, or come up with something better.
Himalay Majumdar
Ranch Hand

Joined: Sep 28, 2008
Posts: 324
Thank you all
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPG / TIFF viewer
 
Similar Threads
TIF IMAGE IS NOT SHOWING UP - URGENT
Problem Sending Tiff Image in Servlet response
.tiff image in browser
how to load compressed tiff image formats with JIMI
Unsupported Color Conversion Request