infer icon indicating copy to clipboard operation
infer copied to clipboard

Small crate to infer file and MIME type by checking the magic number signature

Results 28 infer issues
Sort by recently updated
recently updated
newest added

Let's add support for [Opus](https://opus-codec.org/)! I don't have any substantial knowledge on the matter, but afaik all Opus-encoded files are packed in Ogg containers. Correct me if I am wrong,...

This allows more woff/woff2 file to be recognized. fixes #67

It is recognized by `file` linux command properly File -[Metropolis-SemiBold.woff2.zip](https://github.com/bojand/infer/files/8885482/Metropolis-SemiBold.woff2.zip)

`file` shows that this is proper file File - [ionicons.eot.zip](https://github.com/bojand/infer/files/8885483/ionicons.eot.zip)

``` let path = "System.Runtime.xml"; println!("{:?}", infer::get_from_path(Path::new(&path))) ``` prints ``` Ok(None) ``` [System.Runtime.xml.zip](https://github.com/bojand/infer/files/8646776/System.Runtime.xml.zip)

A lot of SVG files starts with `

Fixes detection of mov files produced by Nikon cameras (and probably some other atypical muxers). The first 4 bytes of a mov file specify the size of the 'ftyp' atom....

As one possible alternative to #57. All tests still pass, published crate size is about 157KiB. 4KiB is a fairly arbitrary value. Most files are inevitably no longer valid, so...

Currently infer just seems to offer `infer::get` for a buffer of bytes and `infer::get_from_path` for a path. However, the crates I am working with generally accept a `R: Read` or...