Skip to content

Commit b984581

Browse files
committed
fix corrupted output on tiffs with colormap
1 parent d402fa3 commit b984581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ func (ifd *ifd) structure(bigtiff bool) (tagCount, ifdSize, strileSize, planeCou
224224
}
225225
if len(ifd.Colormap) > 0 {
226226
cnt++
227-
size += arrayFieldSize(ifd.BitsPerSample, bigtiff)
227+
size += arrayFieldSize(ifd.Colormap, bigtiff)
228228
}
229229
if ifd.TileWidth > 0 {
230230
cnt++

0 commit comments

Comments
 (0)