浏览代码

Fix parsing byte TIFF tags

DarthSim 1 年之前
父节点
当前提交
ef77940062
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: