Browse Source

Fix parsing byte TIFF tags

DarthSim 1 year ago
parent
commit
ef77940062
1 changed files with 1 additions and 1 deletions
  1. 1 1
      imagemeta/tiff.go

+ 1 - 1
imagemeta/tiff.go

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