diff --git a/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs b/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs index a143723e15..77a7243c4e 100644 --- a/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs +++ b/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs @@ -621,7 +621,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg int bytesToWrite = remaining > MaxBytesApp1 ? MaxBytesApp1 : remaining; int app1Length = bytesToWrite + 2; - // write the app1 header this.WriteApp1Header(app1Length); // write the exif data @@ -634,7 +633,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg bytesToWrite = remaining > MaxBytesWithExifId ? MaxBytesWithExifId : remaining; app1Length = bytesToWrite + 2 + 6; - // write the app1 header this.WriteApp1Header(app1Length); // write Exif00 marker @@ -671,7 +669,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg /// private void WriteIccProfile(IccProfile iccProfile) { - // Just in-case someone set the value to null by accident. if (iccProfile == null) { return; diff --git a/src/ImageSharp/MetaData/Profiles/Exif/ExifReader.cs b/src/ImageSharp/MetaData/Profiles/Exif/ExifReader.cs index 32b1abf214..6d473fd4b8 100644 --- a/src/ImageSharp/MetaData/Profiles/Exif/ExifReader.cs +++ b/src/ImageSharp/MetaData/Profiles/Exif/ExifReader.cs @@ -79,7 +79,6 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif if (this.ReadString(4) == "Exif") { - // two zeros are expected to follow the Exif Id code if (this.ReadUInt16() != 0) { return values;