Skip to content

Commit

Permalink
Add support for heic files. Issue #21
Browse files Browse the repository at this point in the history
  • Loading branch information
AJMitev committed Oct 29, 2022
1 parent 558dce2 commit 93735e6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions FileTypeChecker/Types/HighEfficiencyImageFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@

public class HighEfficiencyImageFile : FileType, IFileType
{
public const string TypeName = "High Efficiency Image File";
public const string TypeName = "High Efficiency Image File Format";
public const string TypeExtension = "heic";
private static readonly MagicSequence magicBytes = new(new byte[] { 0x00, 0x00, 0x00, 0x20, 0x66, 0x74, 0x79, 0x70, 0x68, 0x65, 0x69, 0x63 });
private static readonly MagicSequence[] magicBytes =
{
new(new byte[] { 0x00, 0x00, 0x00, 0x20, 0x66, 0x74, 0x79, 0x70, 0x68, 0x65, 0x69, 0x63 }),
new(new byte[]{ 0x00, 0x00, 0x00, 0x18, 0x66, 0x74, 0x79, 0x70, 0x6d, 0x69, 0x66, 0x31 })
};


public HighEfficiencyImageFile() : base(TypeName, TypeExtension, magicBytes)
{
Expand Down

0 comments on commit 93735e6

Please sign in to comment.