Vsevolod Stakhov
6 months ago
No known key found for this signature in database
GPG Key ID: 7647B6790081437
2 changed files with
28 additions and
1 deletions
-
lualib/lua_magic/patterns.lua
-
lualib/lua_magic/types.lua
|
|
|
@ -466,6 +466,23 @@ local patterns = { |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
heic = { |
|
|
|
matches = { |
|
|
|
{ |
|
|
|
-- HEIC/HEIF file format signature |
|
|
|
-- Starts with ftyp followed by specific brand identifiers |
|
|
|
string = "^....ftyphe[im][cs]", |
|
|
|
relative_position = 0, |
|
|
|
weight = 60, |
|
|
|
}, |
|
|
|
{ |
|
|
|
-- Alternative signature for HEIC/HEIF |
|
|
|
string = [[^....ftypmif1]], |
|
|
|
relative_position = 0, |
|
|
|
weight = 60, |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
return patterns |
|
|
|
@ -279,6 +279,16 @@ local types = { |
|
|
|
ct = 'image/bmp', |
|
|
|
av_check = false, |
|
|
|
}, |
|
|
|
heic = { |
|
|
|
type = 'image', |
|
|
|
ct = 'image/heic', |
|
|
|
av_check = false, |
|
|
|
}, |
|
|
|
heif = { |
|
|
|
type = 'image', |
|
|
|
ct = 'image/heif', |
|
|
|
av_check = false, |
|
|
|
}, |
|
|
|
dwg = { |
|
|
|
type = 'image', |
|
|
|
ct = 'image/vnd.dwg', |
|
|
|
@ -324,4 +334,4 @@ local types = { |
|
|
|
}, |
|
|
|
} |
|
|
|
|
|
|
|
return types |
|
|
|
return types |