-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qoiz mime type #300
Comments
As gzip is not the only possible format for compression (bzip2, gzip, zstd, … come to mind), wouldn't it be simpler to just use |
When providing a compressed file to a web browser, conventionally you don't define a new mime type for "the same thing but with compression", you'd provide a |
How do you want to distinguish between image/qoi, named `pic.qoi' and image/qoi+gz named `pic.qoi'? |
You distinguish the plain file from the compressed file by naming the compressed file |
It's not. Not by Firefox, nor Opera, nor Konqueror.
I had to check it, but with browsers mentioned above, it was true. So, at least, when it comes to content encoding and not chrome browsers, it's true. |
I think that it is a problem with MIME. The plus codes can be used (and I think that this is the best solution, if you are still using MIME types), but it is just a "added on" feature to MIME, and doesn't quite work in the ideal way for this purpose, but it is probably nevertheless, the thing to do in this case; you should use File name suffixes such as (I think ULFI (Unordered Labels File Identification) is better, which is why I made Scorpion protocol/file-format uses ULFI. So, you can use e.g. (UTI (Uniform Type Identifier) is even worse, since parameters and add-ons are not possible; it can only specify class inheritance.) |
qoiz mime type
Me think that, alongside
image/qoi
mime type you should registerimage/qoiz
type, defined as gzippped qoi format.This adds simple, portable, available to every web server, fast and effective, entropy compression to format.
It (qoi+gz) often beats png, even with photographic images, still being many times faster than png, both with compressing and decompression.
There are quite a few tests done on this, even recently here, also I tried to implement it in qoibench, to show it in more palatable way, but get zlib error when otimize a code (-O3). Like with IMGP5493_seamless_2.png for example. If interested it's here.
The text was updated successfully, but these errors were encountered: