Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-6

Incorrect reading TIFF file

    XMLWordPrintableJSON

Details

    Description

      I found 2 bugs.

      I have tif file in.tif.

      1. After convert it to png (bmp, tga, etc) by Sanselan it getting horizontal lines.

      Sanselan.writeImage(Sanselan.getBufferedImage(new File("in.tif")), new File("out-tif.png"), ImageFormat.IMAGE_FORMAT_PNG, null);
      

      gwenview, eog, kolourpaint, gimp, etc show in.tif without lines and out.png with lines.
      For example 1st line at ~860 points from top and in full width of picture.

      2. After convert it to png by convert utility from ImageMagic, and then convert it to png (bmp, tga, etc) by Sanselan it became "gray" - all white pixels become gray.

      $ convert in.tif in.png
      Sanselan.writeImage(Sanselan.getBufferedImage(new File("in.png")), new File("out-png-IM.png"), ImageFormat.IMAGE_FORMAT_PNG, null);
      

      gwenview, eog, kolourpaint, gimp, etc show in.png as black and white, but out-png-IM.png as black and gray.

      I'll attach all 4 files.

      Attachments

        1. out-tif.png
          88 kB
          VVD
        2. out-png-IM.png
          97 kB
          VVD
        3. in.tif
          92 kB
          VVD
        4. in.png
          45 kB
          VVD

        Activity

          People

            Unassigned Unassigned
            vvd VVD
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: