File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ public class PngMetadataExtractor
3030 SkipBytes ( fs , 4 ) ;
3131 break ;
3232 case "tEXt" :
33+ case "iTXt" :
3334 var keywordValuePair = await ReadTextualData ( fs , chunkLength ) ;
3435 SkipBytes ( fs , 4 ) ; // Move past the current chunk CRC
3536 yield return keywordValuePair ;
@@ -80,7 +81,7 @@ private async static Task<string> ReadChunkType(Stream stream)
8081 var nullIndex = dataString . IndexOf ( NullTerminator ) ;
8182 return new (
8283 nullIndex > - 1 ? dataString . Substring ( 0 , nullIndex ) : string . Empty ,
83- nullIndex > - 1 && nullIndex + 1 < length ? dataString . Substring ( nullIndex + 1 ) . TrimEnd ( NullTerminator ) : string . Empty
84+ nullIndex > - 1 && nullIndex + 1 < length ? dataString . Substring ( nullIndex + 1 ) . Trim ( NullTerminator ) : string . Empty
8485 ) ;
8586 }
8687
You can’t perform that action at this time.
0 commit comments