Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AnkitDev21 opened this issue Jul 18, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@AnkitDev21
Copy link

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

Version Information:

  • TIFF Java Version:
  • TIFF Java Source: (e.g. Central Repository, Release, Source Code Build)
  • IDE Name & Version:
  • Maven Version: (mvn -version)
  • Java Version: (java -version)
  • Platform & OS:
  • Other Relevant Libraries:

Expected Results:

  • What did you expect to happen?

Observed Results:

  • What happened instead?
  • How often does this occur?

Output:

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

  • Any logs, errors, or output messages?
  • 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:

  • Links to any files needed for testing?

Additional Information:

  • Any additional configuration, data, or information that might help with the issue?
@AnkitDev21 AnkitDev21 added the bug Something isn't working label Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant