turns out infer already has jpeg2000 support and i somehow didn't notice 0uo
This commit is contained in:
parent
d76ed2585d
commit
b89e71a6ab
1 changed files with 0 additions and 5 deletions
|
@ -25,11 +25,6 @@ cfg_if! {
|
||||||
fn init() -> Self {
|
fn init() -> Self {
|
||||||
let mut info = infer::Infer::new();
|
let mut info = infer::Infer::new();
|
||||||
|
|
||||||
// jpeg2000 support because why the stinch not
|
|
||||||
info.add("image/jpeg2000", ".jp2", |buf| {
|
|
||||||
buf.len() > 23 && buf[..23] == b"\x00\x00\x00\x0C\x6A\x50\x20\x20\x0D\x0A\x87\x0A\x6A\x70\x32\x20"[..]
|
|
||||||
});
|
|
||||||
|
|
||||||
info.add("application/vnd.oasis.opendocument.text", "odt", |buf| {
|
info.add("application/vnd.oasis.opendocument.text", "odt", |buf| {
|
||||||
open_document_check(buf, "text")
|
open_document_check(buf, "text")
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue