Avif support

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
milch
Moongazer
Moongazer
Posts: 10
Joined: 2025-07-25, 19:36

Avif support

Post by milch » 2025-07-29, 11:06

Are there any existing patches to enable avif image support?
The files are smaller than jpg while looking a lot less grainy.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38380
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Avif support

Post by Moonchild » 2025-07-29, 11:12

We don't have support for avif. If you're looking for a better image format than jpg, consider either webp (if your focus is file size for smaller images) or jpeg-XL (for all other uses). avif simply doesn't offer convincing improvements and is comparatively computationally very expensive for worse results.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
milch
Moongazer
Moongazer
Posts: 10
Joined: 2025-07-25, 19:36

Re: Avif support

Post by milch » 2025-07-29, 11:24

I don't need official support, was just wondering if a anyone had made a patch to add it.
I'm already on musl which I think is also unsupported?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 38380
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Avif support

Post by Moonchild » 2025-07-29, 11:51

Well, if someone has made a patch for UXP to add AVIF support, we are open to considering taking it up (we have no issue with avif support out of principle or what not), but it's just not something our current team has been focused on because there are bigger issues to tackle than an underperforming image format, even if some websites insist they want to try and push it. Our browser clearly indicates our support for all non-ubiquitous MIME types for content negotiation so we do offer all the information needed to successfully dynamically respond to requests for differing image formats.

As for musl, we don't officially support it because we have no maintainer for that support at the moment. I've clearly indicated already that here too we have no issue with support for musl as long as it does not impact stability or buildability of our standard library builds.

TL;DR: patches welcome :)
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
milch
Moongazer
Moongazer
Posts: 10
Joined: 2025-07-25, 19:36

Re: Avif support

Post by milch » 2025-07-29, 12:01

I see, thank you. I might take a shot at making one myself then.
I'll be continuing to push out unoffical musl builds aswell, so no worries there.
Thanks for your time :D