Support AVIF formatted images in themes
-
I recently stumbled upon an AVIF image by accident, and it just so happens to be that Vivaldi already displays and supports this format.
Here's the image I stumbled upon:
Unfortunately, I was not able to set this image (or any other AVIF image) as the background for a theme.
EDIT: As @LonM pointed out, AVIF formatted images can currently be selected by replacing file extension to .jpg/.jpeg without converting them (using .png or .webp also seems to work).Since Vivaldi already seems to be able to display this file format, I thought we could get themes to support it as well.
-
@AltCode Do you have a monitor/desktop that is 6,000 pixels wide?
If you save it at the required size, and in JPG format, it will be more suitable for a background image.
It seems that AVIF support for themes should not require a lot of code, but is it worth even a little effort for such rare image formats?
It does support transparency, high dynamic range, and animation, so maybe one day it will be commonplace.
-
You can rename it to JPEG without even converting it and it will work fine.
The only change that's needed here is to reduce the limitations on the file picker.
-
@Pesala said in Support AVIF formatted images in themes:
If you save it at the required size, and in JPG format, it will be more suitable for a background image.
That is true, though I'm only suggesting it because it seems like Vivaldi already has everything it needs to support this file format in a theme, so I thought all that would likely be left to do is allowing the user to select such an image.
Being able to just use the image with its original format would be more convenient than having to convert it to JPG/PNG/WebP first.
@Pesala said in Support AVIF formatted images in themes:
Do you have a monitor/desktop that is 6,000 pixels wide?
That was only a sample, here's that same image in the AVIF format, but smaller: 4000p, 2000p.
@Pesala said in Support AVIF formatted images in themes:
but is it worth even a little effort for such rare image formats?
Well, this particular file format is relatively new, so I wouldn't expect there to be much usage of it yet.
-
@AltCode Since renaming the file to JPG is enough to allow this as a theme background, it should be very easy to fix the file-picker to include AVIF. See if you can find an animated AVIF file, and check if that also works on the Start Page.
-
@Pesala Seems like animated ones work as well. These are the samples I found: https://colinbendell.github.io/webperf/animated-gif-decode/avif.html
Here's one in action:
-
Ppafflick moved this topic from Themes on