Browse Source

Fix parsing byte TIFF tags

DarthSim 1 năm trước cách đây
mục cha
commit
ef77940062
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      imagemeta/tiff.go

+ 1 - 1
imagemeta/tiff.go

@@ -90,7 +90,7 @@ func DecodeTiffMeta(rr io.Reader) (Meta, error) {
 
 		switch datatype {
 		case tiffDtByte:
-			value = int(tmp[9])
+			value = int(tmp[8])
 		case tiffDtShort:
 			value = int(byteOrder.Uint16(tmp[8:10]))
 		case tiffDtLong: