Re: How to open and display a TIFF file?

From: Keith James (kdj_at_hgs2h.internal.sanger.ac.uk)
Date: 12/21/04

  • Next message: The Grim Reaper: "Re: how to create a spanning cell in JTable... or any alternative for grid data representation"
    Date: 21 Dec 2004 18:33:06 +0000
    
    

    >>>>> "Ramon" == Ramon <ramon@conexus.net> writes:

        Ramon> After I posted the above, I discovered something called
        Ramon> "JAI" (Java Advanced Imaging). So is this the recommended
        Ramon> way to open and display a TIFF file?

        Ramon> It's just that I hardly think of opening and displaying a
        Ramon> TIFF as "advanced". Is JAI an overkill or is it the right
        Ramon> tool?

    I can't comment on whether JAI is overkill for your requirements -
    that would need more information. However, I can say that we've used
    javax.imageio.ImageIO with the TIFF plugin quite successfully. It's
    very simple - one method call to go between BufferedImages and TIFF
    files (or vice versa).

    You'll need the Image I/O API from

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

    Put the jar file(s) on the CLASSPATH and the ImageIO.read methods will
    return BufferedImages from TIFF files.

    We've used it with 8- and 16-bpp TIFFs. Some software out there may
    produce TIFFs which don't conform to the spec e.g. 12-bpp (so the
    pixel data doesn't align with byte boundaries). The plugin won't work
    with such files.

    -- 
    - Keith James <kdj@sanger.ac.uk> Microarray Facility, Team 65 -
    - The Wellcome Trust Sanger Institute, Hinxton, Cambridge, UK -
    

  • Next message: The Grim Reaper: "Re: how to create a spanning cell in JTable... or any alternative for grid data representation"

    Relevant Pages

    • Fax Tiff format
      ... I am trying to create a tiff file for submission to MS Fax Server in a format that the server will accept without re-formatting it. ... Speed is very important for our application, so I need to find a way to create a tiff file that MS Fax server will accept without re-formatting it. ...
      (microsoft.public.windowsxp.print_fax)
    • MS Fax Tiff format
      ... I am trying to create a tiff file for submission to MS Fax Server in a format that the server will accept without re-formatting it. ... Speed is very important for our application, so I need to find a way to create a tiff file that MS Fax server will accept without re-formatting it. ...
      (microsoft.public.windows.vista.print_fax_scan)
    • Re: How to create a TIFF image from a binary raw data
      ... You wish to construct a java.awt.Image from a TIFF file, ... TIFF file. ... binary array known consisting of a valid TIFF file. ... I ran your program and it worked well with TIFF image file! ...
      (comp.lang.java.programmer)
    • Re: Problem to read tiff file
      ... Is it possible that your extraction code has a bug. ... Make sure that the tiff file that you extracting from EPS is a valid ... I have extraced a tiff image embedded in an EPS file. ...
      (microsoft.public.dotnet.csharp.general)
    • Re: Color problems when converting indexed8 to 24 bit
      ... It's an uncompressed 6 Mb TIFF file. ... Find great Windows Forms articles in Windows Forms Tips and Trickshttp://www.bobpowell.net/tipstricks.htm ... the caller disposes of it? ...
      (microsoft.public.dotnet.framework.drawing)