feat: add true 8-bit and 16-bit TIFF export - #1466
Open
dimafa wants to merge 3 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add a TIFF-only 8-bit/16-bit export control and preserve high-precision renderer data through GPU readback so 16-bit TIFF exports contain high-precision RGB16 samples instead of promoted RGB8 values.
The existing TIFF encoder always requested RGB16, but the production renderer returned
ImageRgba8. Converting that result to RGB16 only multiplied 8-bit samples by 257, producing a nominally 16-bit TIFF without additional image precision.Type of Change
Changes Made
--tiff-bit-depth 8|16to headless export with strict validation and a 16-bit default.rgba16floattiled GPU output/readback path used only for 16-bit TIFF export.Screenshots/Videos
Testing
Test Configuration:
Native and headless validation:
--tiff-bit-depth 12was rejected with process exit code 2.Checklist
Additional Notes
mainand implements the TIFF product path end to end.AI Disclaimer: