drewnoakes / metadata-extractor-dotnet

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

Update JpegSegmentPreamble to UTF-8 spans #376

Closed iamcarbon closed 8 months ago

iamcarbon commented 8 months ago

@drewnoakes Ready for review / feedback.

Note: The AdobeJpegReader compares the Preamble using a case-insensitive comparer in ReadJpegSegments, while it uses an ordinal comparer when reading segments. From what I can tell in the specifications, this should be exact, but I didn't want to change behavior here.