Metadata for AVIF, format returned as 'heif'
See original GitHub issueUsing Sharp 27, which now supports AVIF and is great. Thanks!
Downloading this image and then extracting metadata with sharp(inputavif).metadata()
The format returned is heif
as that’s the encoder used by libvips.
Is it true that this metadata format will be returned for both avif
and heic
images?
If so, it’s not going to be possible to use the metadata to distinguish between the two, one of which is patent-encumbered and cannot be processed without globally installed libvips, as I understand it.
Would it be possible for the libvips metadata to return avif
as the format, for consistency with mime type headers and Sharp output format strings?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Output options - High performance Node.js image processing
Write output image data to a file. If an explicit output format is not selected, it will be inferred from the extension, with...
Read more >Cloudflare Images introduces AVIF, Blur and Bundle with Stream
We announced support for the new AVIF image format in Image Resizing ... As we explained previously, AVIF is a combination of the...
Read more >How to use the sharp.format function in sharp | Snyk
toFormat(sharp.format.jpeg) .resize(Math.min(height || 0, metadata.width ... headers if (mime === 'image/jpeg') { image.rotate(); } return mime; })(type);.
Read more >HEIC Converter Plus - Abyssmedia
Robust tool lets you convert iPhone iPad iPod photos from HEIF/AVIF to JPG or PNG on Windows.
Read more >Newest 'heif' Questions - Stack Overflow
High Efficiency Image File Format (HEIF) is a file format for individual ... I'm looking for a (fast) way to retrieve image metadata...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
libvips v8.11.0 will contain logic to expose the
heif-compression
metadata - see https://github.com/libvips/libvips/pull/1850The object returned/resolved by
toBuffer()
contains properties that are calculated or might change during processing. Thecompression
property ofavif()
is known before processing and does not change during.