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

Significant change in color of output image of tiff file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0-alpha1
    • None
    • Format: TIFF
    • None

    Description

      Hii.. I am reading tiff image file and using this library to convert it to PNG format. Resultant png file has significant change in color wrt its original tiff file. Below is the code :

      File file = new File("C:\\original.tiff");
      BufferedImage bi = Imaging.getBufferedImage(file);
      File dstFile = new File("C:\\result.png");
      
      Imaging.writeImage(bi, dstFile, ImageFormats.PNG, null);
      

      Reason could be :
      original image is 32 bit depth and result image is 24 bit depth. Is there any issue with 32 bit depth image file.

      Link for source tiff file - https://www.dropbox.com/s/kgqgdcygelkor8b/original.tiff?dl=0

      Attachements:

      SS_source.png - Screenshot of original tiff file
      SS_result.png - Screenshot of result png file

      Attachments

        1. Imaging201_CustomPhotometricInterpreter.jpg
          85 kB
          Gary Lucas
        2. SS_result.png
          641 kB
          Praful Vaishnav
        3. SS_source.png
          590 kB
          Praful Vaishnav

        Activity

          People

            Unassigned Unassigned
            praful.vaishnav Praful Vaishnav
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: