Skip to content

Refactor TiffEncoder - #2779

Merged
197g merged 1 commit into
image-rs:mainfrom
RReverser:fix-tiff-l16-icc
Feb 23, 2026
Merged

197g merged 1 commit into
image-rs:mainfrom
RReverser:fix-tiff-l16-icc

Conversation

@RReverser

Copy link
Copy Markdown
Contributor

Moves more shared code into write_tiff to:

  • Simplify its generic bounds.
  • Reduce duplication in the public write_image function.
  • Most importantly, fix a copy-paste bug where ICC wasn't encoded for L16 color type.

This deduplication should make it harder to make similar copy-paste mistakes in the future.

Moves more shared code into write_image to simplify its generic bounds, reduce duplication in the public write_image function, and fix a copy-paste bug where ICC wasn't encoded for L16 color type - this deduplication should make it harder to make similar copy-paste mistakes in the future.
@197g
197g merged commit a0f66c1 into image-rs:main Feb 23, 2026
32 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Release 0.25.* Feb 23, 2026
@197g 197g moved this from Done to Ready in Release 0.25.* Feb 24, 2026
@197g 197g moved this from Ready to Done in Release 0.25.* Feb 24, 2026
@197g 197g moved this from Done to In review in Release 0.25.* Feb 24, 2026
@197g 197g moved this from In review to Backported in Release 0.25.* Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backported

Development

Successfully merging this pull request may close these issues.

2 participants