* [PATCH] lisp/ox-html.el: Add avif support for html export inline images @ 2024-03-26 21:19 Ross Timson 2024-03-27 12:15 ` Ihor Radchenko 0 siblings, 1 reply; 4+ messages in thread From: Ross Timson @ 2024-03-26 21:19 UTC (permalink / raw) To: emacs-orgmode; +Cc: Ross Timson * 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 --- lisp/ox-html.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index baca21014..5234b634d 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -861,9 +861,9 @@ 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 -- 2.44.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] lisp/ox-html.el: Add avif support for html export inline images 2024-03-26 21:19 [PATCH] lisp/ox-html.el: Add avif support for html export inline images Ross Timson @ 2024-03-27 12:15 ` Ihor Radchenko 2024-04-02 22:40 ` Adam Porter 0 siblings, 1 reply; 4+ messages in thread From: Ihor Radchenko @ 2024-03-27 12:15 UTC (permalink / raw) To: Ross Timson; +Cc: emacs-orgmode Ross Timson <me@rosstimson.com> writes: > * 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 Thanks! Applied, onto main. I added etc/ORG-NEWS entry and marked the defcustom that its value have been changed in Org 9.7. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1be2f9693 You are also now listed as an Org mode contributor. https://git.sr.ht/~bzg/worg/commit/16c24ea8 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92> ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] lisp/ox-html.el: Add avif support for html export inline images 2024-03-27 12:15 ` Ihor Radchenko @ 2024-04-02 22:40 ` Adam Porter 2024-04-03 12:03 ` Ihor Radchenko 0 siblings, 1 reply; 4+ messages in thread From: Adam Porter @ 2024-04-02 22:40 UTC (permalink / raw) To: yantar92; +Cc: emacs-orgmode Hi Ihor, I noticed what appears to be a typo in this commit: https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1be2f9693 +*** =.avif= images are not recognized in ~org-html-inline-image-rules~ ^ Unless I misunderstand something, I guess it's supposed to say "now recognized." :) --Adam ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] lisp/ox-html.el: Add avif support for html export inline images 2024-04-02 22:40 ` Adam Porter @ 2024-04-03 12:03 ` Ihor Radchenko 0 siblings, 0 replies; 4+ messages in thread From: Ihor Radchenko @ 2024-04-03 12:03 UTC (permalink / raw) To: Adam Porter; +Cc: emacs-orgmode Adam Porter <adam@alphapapa.net> writes: > I noticed what appears to be a typo in this commit: > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1be2f9693 > > > +*** =.avif= images are not recognized in ~org-html-inline-image-rules~ > ^ > > Unless I misunderstand something, I guess it's supposed to say "now > recognized." :) Argh! Again. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=f6876d73b -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92> ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-04-03 12:04 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-03-26 21:19 [PATCH] lisp/ox-html.el: Add avif support for html export inline images Ross Timson 2024-03-27 12:15 ` Ihor Radchenko 2024-04-02 22:40 ` Adam Porter 2024-04-03 12:03 ` Ihor Radchenko
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).