-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add option to ignore color palette in TIFF images #589
Conversation
add option flag to ignore the color table in type 3 TIF images that have indexed colors, returning index values as single channel, greyscale image instead of psuedo-colored, 3 channel RGB
Add option to ignore palette in TIF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a test to https://github.com/image-js/image-js/blob/legacy/src/image/core/__tests__/loadTIFF.js ?
- reuse palette in test table, with options - conditionally load with options
Codecov Report
@@ Coverage Diff @@
## legacy #589 +/- ##
==========================================
- Coverage 83.61% 83.58% -0.04%
==========================================
Files 163 163
Lines 5597 5603 +6
Branches 1394 1397 +3
==========================================
+ Hits 4680 4683 +3
- Misses 817 820 +3
Partials 100 100
Continue to review full report at Codecov.
|
Done. Not sure I understand what's going on with the code coverage, but if there's something I can do just let me know. Thanks! |
Thanks! |
getImageFromIFD
will automatically create a 16 bit RGB if there if a tiff is of type 3. This makes sense most times, but occasionally, we need the raw single channel greyscale image.