lisp/ox-html.el: Add avif support for html export inline images

* lisp/ox-html.el (org-html-inline-image-rules): Add AVIF image
support for inline images on HTML export.

AVIF is well supported by browsers these days and offers similar
features and much better compression than the other image formats
commonly used for the web.

TINYCHANGE
This commit is contained in:
Ross Timson 2024-03-26 21:19:47 +00:00 committed by Ihor Radchenko
parent 3f20e32f8e
commit 1be2f96931
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
2 changed files with 8 additions and 4 deletions

View File

@ -587,6 +587,10 @@ link when storing any type of external link type in an Org file, not
just =id:= links.
** New and changed options
*** =.avif= images are not recognized in ~org-html-inline-image-rules~
In =ox-html=, =.avif= image links are now inlined by default.
*** New option ~org-beamer-frame-environment~
The new option defines name of an alternative environment to be used

View File

@ -861,15 +861,15 @@ link to the image."
:type 'boolean)
(defcustom org-html-inline-image-rules
`(("file" . ,(regexp-opt '(".jpeg" ".jpg" ".png" ".gif" ".svg" ".webp")))
("http" . ,(regexp-opt '(".jpeg" ".jpg" ".png" ".gif" ".svg" ".webp")))
("https" . ,(regexp-opt '(".jpeg" ".jpg" ".png" ".gif" ".svg" ".webp"))))
`(("file" . ,(regexp-opt '(".jpeg" ".jpg" ".png" ".gif" ".svg" ".webp" ".avif")))
("http" . ,(regexp-opt '(".jpeg" ".jpg" ".png" ".gif" ".svg" ".webp" ".avif")))
("https" . ,(regexp-opt '(".jpeg" ".jpg" ".png" ".gif" ".svg" ".webp" ".avif"))))
"Rules characterizing image files that can be inlined into HTML.
A rule consists in an association whose key is the type of link
to consider, and value is a regexp that will be matched against
link's path."
:group 'org-export-html
:package-version '(Org . "9.5")
:package-version '(Org . "9.7")
:type '(alist :key-type (string :tag "Type")
:value-type (regexp :tag "Path")))