Comments (3)
well, on linux you can easily install the programs and create the test files yourself:
$ sudo apt install brotli lz4 zstd
$ touch test.txt
$ brotli -k test.txt
$ lz4 -k test.txt
$ zstd -k test.txt
I uploaded results:
- http://stokito.com/test.txt.br
- http://stokito.com/test.txt.lz4
- http://stokito.com/test.txt.zst
Please download them until my site is working.
Magics:
- Brotli: doesn't have a magic number. We can only determine it by the file extension
.br
. - LZ4: 4 Bytes, Little endian format. Value :
0x184D2204
https://github.com/lz4/lz4/blob/master/doc/lz4_Frame_format.md - ZStandard: Little endian
0xFD2FB528
Mime types:
application/x-brotli
andapplication/x-brotli-compressed-tar
fortar.br
filesapplication/x-lz4
andapplication/x-lz4-compressed-tar
fortar.lz4
ortlz4
filesapplication/zstd
(without the-x
) andapplication/x-zstd-compressed-tar
fortar.zst
ortzst
files
from puremagic.
Added brotil magic number in 1.7 for format 3 from google/brotli#298
lz4 and zst added in 1.6
from puremagic.
Thanks for bringing up these new formats, if you happen to have any of them please post example files.
from puremagic.
Related Issues (20)
- RuntimeWarning when running package HOT 2
- Some common filetypes are not detected HOT 1
- Missing mime types for some headers HOT 2
- Price-matching other repos for more file support HOT 1
- mimetype from stream HOT 1
- Confidence/Selection logic question HOT 2
- Remove unsupported Python stuff HOT 1
- same (mp3) file, different name ... different output: mp3 versus koz HOT 7
- Is it possible to use filehandles / bytestream? HOT 2
- SVG images not recogniced HOT 1
- missing mime type for webp HOT 1
- Webp image mime type is empty HOT 2
- .epub listed as "INI Config file" in magic_data.json HOT 1
- How to handle two sets of bytes for matching improvements? HOT 4
- Adding JPEG-XL Support HOT 2
- Create setup.py and integrate with PyPi
- JPEG XS Two mime types HOT 4
- Multi-part checks with negative offset for second match HOT 1
- Add mime type lookup for exts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puremagic.