drewnoakes / metadata-extractor-dotnet

Extracts Exif, IPTC, XMP, ICC and other metadata from image, video and audio files
Other
934 stars 165 forks source link

Reduce allocation when reading PNG chunks #286

Closed drewnoakes closed 3 years ago

drewnoakes commented 3 years ago

Previously the code would read a byte[] for every PNG chunk, irrespective of whether it was going to be stored. With this change, these arrays are only allocated when they will actually be needed.

This is the .NET port of https://github.com/drewnoakes/metadata-extractor/pull/535