fix: clip border tile rows when discarding extra samples

Tiled images with a width that is not a multiple of the tile width
wrote the border tiles' horizontal padding into the next output row.
Fixes #400.
This commit is contained in:
jacovdbergh@gmail.com committed 2026-07-08 08:16:27 +02:00
1 parent 8ad05b85db
commit dee0c2fb11
4 files changed
+42

No files matched your search

+7
View File
@@ -1,5 +1,12 @@
# Version 0.12.0 (unreleased)
Fixes:
- Decoding a tiled image whose width is not a multiple of the tile width no
longer corrupts the columns below the right border tiles when extra samples
are discarded (e.g. RGB with an unspecified extra sample). The horizontal
tile padding was written past the end of the output row, spilling into the
leftmost columns of the following row.
Additions:
- Added the `TiffHeader` type. It can be used to create a `Decoder` in a state
before the first IFD and allows opening files at an arbitrary first IFD