Simple Machines Community Forum

SMF Development => Feature Requests => Applied or Declined Requests => Topic started by: spiros on October 11, 2021, 03:23:34 AM

Title: Avif image support
Post by: spiros on October 11, 2021, 03:23:34 AM
Avif appears to be offering much better compression/quality ration than jpg/webp and it is supported by major browsers. Maybe consider supporting it?

https://jakearchibald.com/2020/avif-has-landed/
https://www.zdnet.com/article/chrome-and-firefox-are-getting-support-for-the-new-avif-image-format/
Title: Re: Avif image support
Post by: GL700Wing on October 11, 2021, 05:57:42 AM
Imagick v7 or later is required and browser support is still limited (Safari currently support it) ...

https://developer.mozilla.org/en-US/docs/Web/Media/Formats/Image_types#avif
https://www.coywolf.news/webmaster/why-webkit-supports-avif-but-safari-does-not/
Title: Re: Avif image support
Post by: spiros on October 11, 2021, 06:08:11 AM
https://www.reddit.com/r/AV1/comments/m8ij2s/safari_adding_avif_support_soon/
Title: Re: Avif image support
Post by: GL700Wing on October 11, 2021, 06:33:19 AM
Quote from: spiros on October 11, 2021, 06:08:11 AMhttps://www.reddit.com/r/AV1/comments/m8ij2s/safari_adding_avif_support_soon/
The second link I provided is to an article from August this year and, according to the article, "... image decoding isn't done by the browser, it's done by the operating system. ... The reason why Safari doesn't support AVIF is that Apple hasn't added AVIF support to iOS, iPadOS, and macOS."

Also, the following from by Sam Sneddon, a software engineer at Apple that works on WebKit, in August this year: "The Apple ports use the system-provided image decoding capabilities; we're unlikely to deviate from that here, so any support for AVIF depends on underlying OS support. I can't comment as to whether any future OS releases will support AVIF."
Title: Re: Avif image support
Post by: GL700Wing on October 20, 2021, 10:04:43 PM
I've been looking into AVIF support some more and it seems that only PHP 8 and later will support it and until then commands like getimagesize will not work for AVIF images ...
Title: Re: Avif image support
Post by: Sesquipedalian on October 21, 2021, 02:59:17 PM
A modification can add this easily enough, but it won't be going into our bundled features for SMF 2.1.