-
Notifications
You must be signed in to change notification settings - Fork 13
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
[ADD] image/heif-sequence #20
Comments
I made some tests, and seems that mimetype.io correctly finds the correct mimetype as @patrickmccallum may could be added the name of the mimetype to the default 404 page, with a link to open an issue with the predefined template? I don't know if it's possible or if it's a big work, just asking. sample1.zip - The zip contains a file Also these related (not alternative) mimetypes are missing: |
On Firefox 121.0 (Linux), the mimetype is returned correctly for your attached sample .heif, but for any .heics file I try, I get the 404 page. For your information, .heics files are created with the "live sticker" feature on iOS I attached 2 more live stickers, dragged out of the Message app on macOS. |
Exactly, as I said here:
I understand that @lobau Can you provide more official sources, like RFCs, MDN Web docs, or IANA pages, to help us? We cannot publish a mimetype simply because someone tells us 'this is the correct mimetype', even if some command-line tools and browsers agree on this, I hope you understand. |
Oh, I have no idea if it's the correct mimetype. I'm building a web app and I'm trying to reliably filter specifically for .heics files. I couldn't find a lot of information online, but I discovered your website while searching for a mimetype sniffer. Your 404 page says to file a bug if it fails to detect the mimetype, which is what I did 😅 |
Ok, I understand the confusion, I don't make it your fault. I don't want a big standard RFC that tells us 'this is the truth'. But there for sure sources online that are trusthworty, some reputable article, some link to MDN web docs, anything linkable that has a reputation. Or maybe you will not find anything of that type. This is may be the case. Even if you will not find anything reputable (if not official), we can categorize a mimetype as 'chosen as a convention by its large use or from big influence of some organization', to help the people who find
So please, do a little bit of more searching, and if you don't find anything, I will believe you. Open source is built also on volunteer work and trust.
|
@lobau found something? Anything is good! |
@patrickmccallum I made some research, and I figured out that HEIC and HEIF are different mimetypes with different meanings, that In conclusion, @lobau was right, we should handle I leave all informations that I collected here below. Give them a read if you have time. HEIFHEIF is a general format for storing images and image sequences. The images contained can be in any codec. HEIF features: see wikipedia. A short list includes: store of individual images and thumbnails, store additional data like editing instructions, alpha plane, depth map, exif, xmp. HEIF files use Specializations of HEIFHEIC, AVIF and AVCI are specializations of HEIF where the codec used for the contained images is only one (HEVC for .heic files, AV1 for .avif files and AVC in .avci files) HEIC is a format developed from Apple. Mimetypes AVIF is a specialized format of heif that is open-source, royalty-free, so it's used in web browsers. It was developed by AOMedia. AVIF is also based on MIAF. MIAF is subset of HEIF, with the goal to simplify the implementation for decoders/encoders. None of mimetypes has a magic number that identify exactly the mimetype when inspecting the file. File extensions and mimetypes:
ConclusionsHEIF is a general format for images, not fully supported because because it can accept any codec. The 'sequence' variant of the format is threated almost the same by the browsers, but their are not the same, according to AOMedia. Around the web, many people take the wrong assumption that HEIC is the same as HEIF, but this is absolutely not true. HEIC and AVIF are the specialized version of HEIF wich use different codecs. They have their own extensions and mimetypes. The 'sequence' variant of the HEIC format is threated almost the same by the browsers, but their are not the same, just like HEIF. In mimetype.io there should be different sections for heic and avif files, and they should be linked as related to the heic format. The 'sequence' version of each mimetype should be merged in the 'still image' section. ResourcesIANAHeic (with the general definition of heif): https://www.iana.org/assignments/media-types/image/heic Mimetypes Mimetypes AOMediahttps://aomediacodec.github.io/av1-avif/ Github discussion on the difference between the still image format ( ex. MDNAVIF is the only format included in MDN Web docs: https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types Wikipediahttps://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format |
Live Stickers made on iPhone use the .heics file format, which is detected as
image/heic-sequence
by tools like thefile
command on Linux, or asaccept
parameter in an HTML input file (<input type="file" accept="image/heic-sequence" />
)Currently, mimetype.io sends you to a 404 when uploading a .heics file.
Attached an example of such live sticker.
felix.zip
The text was updated successfully, but these errors were encountered: