Questions tagged [avif]

51 questions
1
vote
1 answer

How do I use the .avif file format in Android apps?

developer.android.com states that Android has native support for .avif since Android 12, but how do I display a .avif file in an ImageView for example or any UI component in Android? Do I have to rely on third-party libraries or plugins? Best…
Fedora
  • 21
  • 3
1
vote
0 answers

How to process AVIF Images in Java Applications?

I have a Spring Boot/Java 17 application that processes multiple images. For this I use the libs: org.apache.commons.imaging; javax.imageio; When processing some images, I had an error due to a new format that I was not aware of - AVIF. This…
1
vote
1 answer

PHP 8.1 imageavif(): AVIF image support has been disabled

PHP 8.1.4 (Installed via remi repo) runing on CentOS 8 Stream I tested avif support on the machine: php -i | grep AVIF AVIF Support => enabled php -r 'echo gd_info()["AVIF Support"];' 1 if (function_exists("imageavif")) {echo "tes";}else{echo…
xforce
  • 13
  • 3
1
vote
0 answers

How to check if an AVIF still image has been lossless encoded

I have an avif still image file that I know has been lossless encoded. I'm trying to find a command line tool (or other way) that allow me to check that the file has been lossless encoded (instead of lossy). I have tried with heif-info (from…
jfcalvo
  • 459
  • 1
  • 5
  • 16
1
vote
1 answer

php 8.1 avif error (docker): No codec available

I have php 8.1 via docker and avif functions not working. Warning: imageavif(): avif error - Could not encode image: No codec available in /var/www/test.php on line 5 Dockerfile: FROM php:8.1-fpm RUN apt-get update && apt-get install -y \ git…
1
vote
1 answer

AVIF image decoding problem with LIBHEIF and DAV1D decoder

Hoping to get help from someone familiar with AVIF image format and the DAV1D codec. I am a Windows/C/C++ programmer trying to integrate HEIF and AVIF image functionality into an application I am developing (just decoding for now). So I used the…
O.T.Vinta
  • 217
  • 1
  • 4
1
vote
1 answer

configure aws lambda and api gateway to return binary data for image/avif content-type

There's no shortage of questions and blog posts about binary data using aws lambda and api gateway, but surprisingly I haven't been able to find anything related to AVIF images. This is important because of this issue in chromium. Essentially the…
1
vote
1 answer

What is an avif file signature?

I have searched it from here, here, here but none of them included the avif signature. I want to determine whether a file is avif or not from bitstream. But document is too complex or cannot be accessed freely. How can I achieve this? It will be…
jeiea
  • 1,965
  • 14
  • 24
1
vote
1 answer

AVIF Image File Format Supported by Android 12 not Load in ImageView Android

I have created new Android Application with this settings in build.gradle android { compileSdkVersion 'android-S' buildToolsVersion "30.0.3" defaultConfig { applicationId "com.example.aviftest" minSdkVersion 16 …
Satyam Gondhale
  • 1,415
  • 1
  • 16
  • 43
1
vote
1 answer

Add avif images in HTML using nginx as a server

I created some avif images with heif-anc: for i in card*.png ; do heif-enc "$i" -o "${i%.*}.avif" ; done But When I added them to my website, it just proposed to download the image instead. Then I enabled avif images in my nginx-config with http { …
rubo77
  • 19,527
  • 31
  • 134
  • 226
1
vote
1 answer

How to call a onload callback on webp images load?

As we know, we could call a onLoad callback on img elements for images load. like what I did for it: var i = new Image(); if (crossOrigin) i.crossOrigin = crossOrigin; i.onload = function () { decode && i.decode ?…
SayJeyHi
  • 1,559
  • 4
  • 19
  • 39
1
vote
2 answers

How to enable AVIF support for a server

The AVIF image format looks to be a really promising format. How can you compile and use it on a web server? Mine specifically is Ubuntu 18.04/Nginx but I'm looking for a gist of how to compile and start converting images?
Jai Sandhu
  • 224
  • 1
  • 4
  • 19
0
votes
1 answer

How to import AVIF image in iOS by PHPicker

I use PHPicker for user to import photos, but UIImage not support the pic of .AVIF, so I want to get the origin data of .AVIF pic, this is my code: func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) { …
zZz
  • 1
  • 3
0
votes
0 answers

AVIF header structure

I'm interested in the following question: which .avi bytes are responsible for which fields (monochrome, width, height, etc.). On the Internet, I could not find the necessary information. Thank you in advance! Some links I found on this question:…
kae1dy
  • 1
  • 1
0
votes
0 answers

How to convert some .avif images to video with ffmpeg?

I have some avif images in one dir. How to convert some .avif images to video with ffmpeg? by read ffmpeg doc, i run such cmd in shell: ffmpeg -framerate 10 -pattern_type glob -i *.avif -c:v libx264 -pix_fmt yuv420p out.mp4 but only get some…
tousang
  • 1
  • 1