Re: [PATCH] lisp/ox-html.el: Add avif support for html export inline images

2024-04-03 Thread Ihor Radchenko
Adam Porter  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 .
Support Org development at ,
or support my work at 



Re: [PATCH] lisp/ox-html.el: Add avif support for html export inline images

2024-04-02 Thread Adam Porter

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



Re: [PATCH] lisp/ox-html.el: Add avif support for html export inline images

2024-03-27 Thread Ihor Radchenko
Ross Timson  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 .
Support Org development at ,
or support my work at 



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

2024-03-26 Thread 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