Browse Source

App1Marker

af/merge-core
James Jackson-South 9 years ago
parent
commit
df8a67be0a
  1. 8
      src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs

8
src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegDecoderCore.cs

@ -505,8 +505,12 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort
byte[] profile = new byte[remaining]; byte[] profile = new byte[remaining];
this.InputProcessor.ReadFull(profile, 0, remaining); this.InputProcessor.ReadFull(profile, 0, remaining);
if (profile[0] == 'E' && profile[1] == 'x' && profile[2] == 'i' && profile[3] == 'f' && profile[4] == '\0' if (profile[0] == OrigJpegConstants.Exif.E &&
&& profile[5] == '\0') profile[1] == OrigJpegConstants.Exif.X &&
profile[2] == OrigJpegConstants.Exif.I &&
profile[3] == OrigJpegConstants.Exif.F &&
profile[4] == OrigJpegConstants.Exif.Null &&
profile[5] == OrigJpegConstants.Exif.Null)
{ {
this.isExif = true; this.isExif = true;
this.MetaData.ExifProfile = new ExifProfile(profile); this.MetaData.ExifProfile = new ExifProfile(profile);

Loading…
Cancel
Save