Skip to content

Commit

Permalink
Fix incorrect PNG chunk type (should be tEXt, not iTXt).
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Jan 26, 2017
1 parent 43dde5a commit d3bf7ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MetadataExtractor/Formats/Png/PngMetadataReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private static IEnumerable<Directory> ProcessChunk([NotNull] PngChunk chunk)
var value = reader.GetNullTerminatedStringValue(bytesLeft, _latin1Encoding);

var textPairs = new List<KeyValuePair> { new KeyValuePair(keyword, value) };
var directory = new PngDirectory(PngChunkType.iTXt);
var directory = new PngDirectory(PngChunkType.tEXt);
directory.Set(PngDirectory.TagTextualData, textPairs);
yield return directory;
}
Expand Down

0 comments on commit d3bf7ec

Please sign in to comment.