Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions MagicBytesValidator/Formats/Jpg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@ public Jpg() : base(
* - Image data must stop with trailer 0xFF 0xD9
* - JPEG may contain metadata after trailer.
* - Currently available: Samsung specific metadata (ending on "SEFT") */

// TODO: We might remove the `EndsWithAnyOf` as metadata can be quite diverse.

StartsWith([0xFF, 0xD8, 0xFF])
.Anywhere([0xFF, 0xD9])
.EndsWithAnyOf([
[0xFF, 0xD9],
[0x53, 0x45, 0x46, 0x54]
]);
.Anywhere([0xFF, 0xD9]);
}
}
Loading