Skip to content

Commit

Permalink
Merge pull request #57 from hgy59/empty_app1_fix_only
Browse files Browse the repository at this point in the history
clear header for empty app1 section
  • Loading branch information
oozcitak authored Jun 22, 2018
2 parents 36520bc + f88b49d commit 9713d45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ExifLibrary/JPEGFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,8 @@ private bool WriteExifApp1(bool preserveMakerNote)

if (ifdzeroth.Count == 0 && ifdgps.Count == 0 && ifdinterop.Count == 0 && ifdfirst.Count == 0 && Thumbnail == null)
{
// Nothing to write
// Nothing to write to App1 section
exifApp1.Header = new byte[0];
return false;
}

Expand Down

0 comments on commit 9713d45

Please sign in to comment.