by ftufek · 4y ago · 0 comments
Cloudinary compared tens of thousands of samples and found HEIF turns out to be the best at compressing images, even better than AVIF.
So I do think HEIF could have its uses outside of the web. And it would be interesting to see how VVC performs as an image format.
I do wish the world pays more attention to JPEG XL though. Which is technically better in almost every single way.
When I'm uploading a picture straight from an iPhone, using built-in Safari, it's JPG not HEIF. It's got a different name though - RFC 4122 UUID with ".jpeg" extension, not IMG_XXXX.JPG
File uploaded to a tiny Python/Flask app, to make sure no processing is done behind the scenes, is seen by file(1) as: "9E83B1D4-8AF1-4468-9095-0EE3FEEDF5BE.jpeg: JPEG image data, Exif standard: [TIFF image data, big-endian, direntries=X, orientation=X, xresolution=X...]" and can be opened with Firefox as your usual JPEG. HTML form asks for enctype="multipart/form-data" and doesn't specify anything about image formatting nor does it care what file type is being uploaded.
<input type="file" accept="image/jpeg" />
iOS supports HEIF, Safari does not.
Why Safari does not, still, 5 years later, I can't tell you.
At this point AVIF vs JPEG XL is a more interesting discussion than anything vs HEIC.
It's pretty clear at this point that JPEG XL is a superior codec for e.g. photography. I think the question is going to be whether the browsers decide that it's worth supporting on the web, where lower quality images are the norm.
Some comparison images: https://afontenot.github.io/image-formats-comparison/#eaglef...
With progressive decoding, JPEG XL is also much a better fit for the web.
I just dont see how we continue to ignore JPEG XL and want to force AVIF adoption everywhere, when XL is technically superior, including encoding and decoding complexity. We literally have representatives from different companies and industries, most have been silent in the image / video codec format war begging for browser vendors to support JPEG XL.
But of course the cult and ideology somehow had people convinced the only accepted codec are AVIF, AV1 and Opus.
[1] https://twitter.com/jonsneyers/status/1563442356493230080
https://libre-software.net/image/avif-test/
on two Linux machines with Firefox 105, and both showed the alt image text, so I guess maybe not, although it's showing up as enabled in about:config.
Edit: https://avif.io/ seems to work and display converted .jpg files, so maybe the first URL is old and doesn't work.
My browser seems to render AVIF just fine on Ubuntu and Manjaro, with Nvidia and Intel GPU backends. If it works with hardware acceleration on top of Nvidia's shitty drivers, I assume it'll work everywhere.
I've heard some old bug reports about colour management and AVIF not working together well in Firefox, that was the reason support had been baked in for a whole but the format was still locked behind a flag. I suppose they fixed that now that they enable the format by default.
Safari for iOS 16.0 supports it now for still images. Safari for 16.1 apparently adds support for animated image sequences.
AVIF support comes to macOS with macOS Ventura.
and while I'm here, if you export/backup your heic photo library from your Mac, the .mov files from "live" photos are separate files, and not part of the .heic (unless they are both)
They're doing an awful job of it then.
If you read the link above you already know that HEIC (HEVC in HEIF) isn't an Apple invention, but an ISO standard that Apple chose to adopt. With macOS Ventura, Photos will also support AVIF (AV1 in HEIF).
In addition to those HEIF-based formats, Apple Photos supports any image file/container and media formats you might expect should work, along with RAW formats from these camera: https://support.apple.com/en-us/HT212821 You can also export to JPEG, PNG, and TIFF.
There's a whole ecosystem of apps that can work with the Apple Photos catalog directly, an extension system for 3rd-party developers, blah blah blah.