Saving a bufferedimage as a .tiff

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eagles
    New Member
    • Jun 2007
    • 4

    #1

    Saving a bufferedimage as a .tiff

    I'm trying to save a BufferedImage as a .tiff.
    The following:
    ImageIO.write(b ufferedImg, "TIFF", new File("file.tiff "));
    is returning false.
    Do I need to use JAI?
    I'm just trying to use the easiest way to save a .tiff.
    Thanks.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Have you tried a lowercase "tiff" name?

    kind regards,

    Jos

    Comment

    • eagles
      New Member
      • Jun 2007
      • 4

      #3
      Yes, I tried "tiff" but it still doesn't work. I can save the BufferImage as a jpeg but I can't figure out how to save it as a tiff.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by eagles
        Yes, I tried "tiff" but it still doesn't work. I can save the BufferImage as a jpeg but I can't figure out how to save it as a tiff.
        Somewhere deep in the back of my memory I think I remember that only .gif,
        .jpeg and .png formats are suppported but please correct me if I'm wrong.

        kind regards,

        Jos

        edit: I think I was right after I read what "Java tiff" all returned after googling for it;
        the core classes simply don't supply the tiff format at all; bad luck. JAI seems to
        support it though.

        Comment

        Working...