We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 682ef0c commit 1556713Copy full SHA for 1556713
src/decoder/mod.rs
@@ -481,7 +481,8 @@ fn invert_colors(
481
sample_format: SampleFormat,
482
) -> TiffResult<()> {
483
match (color_type, sample_format) {
484
- (ColorType::Gray(n), SampleFormat::Uint) if 8 % n == 0 => {
+ // Where pixels do not cross a byte boundary
485
+ (ColorType::Gray(1 | 2 | 4 | 8), SampleFormat::Uint) => {
486
for x in buf {
487
// Equivalent to both of the following:
488
//
0 commit comments