ngageoint / tiff-java

Tagged Image File Format Java Library
https://ngageoint.github.io/tiff-java
MIT License
72 stars 34 forks source link

Caused by: mil.nga.tiff.util.TiffException: Unsupported field type for sample format: 3, bits per sample: 8 #52

Open AnkitDev21 opened 1 year ago

AnkitDev21 commented 1 year ago

Please fill out as much known and relevant information as possible.

Version Information:

Expected Results:

Observed Results:

Output:

Caused by: mil.nga.tiff.util.TiffException: Unsupported field type for sample format: 3, bits per sample: 8

Steps to Reproduce:

  1. Step One
  2. Step Two
  3. ...

Relevant Code:

// Code to reproduce the problem?
InputStream inputStream = getApplicationContext().getResources().openRawResource(R.raw.cit);

    TIFFImage tiffImage = null;
    try {
        tiffImage = TiffReader.readTiff(inputStream);
    } catch (IOException e) {
        throw new RuntimeException(e);
    }
    List<FileDirectory> directories = tiffImage.getFileDirectories();
    FileDirectory directory = directories.get(0);
    Rasters rasters = directory.readRasters();
    Log.d(TAG, "onCreate: " + rasters);

Test Files:

Additional Information: