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:
parent
3f20e32f8e
commit
1be2f96931
|
@ -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
|
||||
|
|
|
@ -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")))
|
||||
|
||||
|
|
Loading…
Reference in New Issue