From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oFgsCEU8A2YdvwAAe85BDQ:P1 (envelope-from ) for ; Tue, 26 Mar 2024 22:21:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id oFgsCEU8A2YdvwAAe85BDQ (envelope-from ) for ; Tue, 26 Mar 2024 22:21:09 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=rosstimson.com header.s=sig1 header.b=h4bCa38X; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=rosstimson.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711488069; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=qIAdFChWmf6ZrJy/g3xow4BYa/ypzo75SQ2G6yidxNs=; b=Wbhqluo+vWyE/FRu0KmR5Cs7Mrv+k+vO/aka36lnuMg5UEfxbud0jbx0R0QuVud+QV24Q3 TbVYrGzEuFcwWdsODnmsSsv2u530pGgqDnor3EOy3HH5WX8MhJMO2VDkYz1g3uUBmyjO12 SEuRiDmVHUOcwB2wVddm41fk4DYLrcM5X7d043VdaLScOqR5Ktd7S8xxzldqqALatD59r7 hbaVCugk55gmLX+GzJft4/TLQN73qNG20U9C3+QeU0BfB74HTqor4pXFLOrYuzHvZ+s/1G tRUGEjXdF48fpaoCapOWAv1cp8VnsoLeMFMgPoj2V31MUt4+h6EW1dHs3l66mg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=rosstimson.com header.s=sig1 header.b=h4bCa38X; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=rosstimson.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711488069; a=rsa-sha256; cv=none; b=HCKWzhcwBrMl2jdXRjVD6sEucafmXz4sncR9HJRac4xANO1vjhRukRdrDUxeg9tG8uQ5/W KMVmiEY7ms2EV7cSfR+s6EINOG3x4tJLGsCqF3T2+YQKhJjnvFdT4VRHJmkXb/LpjOPTJH hteNInFYkT07/6/cuAcytG/BAZyZhcr6tECRpg7unMTiHlM0KNaT0kuV63wEYPVOSTykfp PoWI8qXaG22X6NZGRYdlkDMwcVtG/MRwZxh+LixR04W+UqhULAYYaezCZccUFNmrECBKZ3 Knfwv4MONwcH+RkMZO9bnoUKblJPCySvaT7n0yYi0aTjihacbvSJ8EoyE4jeOg== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CB446688AD for ; Tue, 26 Mar 2024 22:21:08 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rpEDe-0000tT-9o; Tue, 26 Mar 2024 17:20:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpEDb-0000t3-PY for emacs-orgmode@gnu.org; Tue, 26 Mar 2024 17:20:28 -0400 Received: from qs51p00im-qukt01080501.me.com ([17.57.155.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rpEDZ-0007uV-T8 for emacs-orgmode@gnu.org; Tue, 26 Mar 2024 17:20:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rosstimson.com; s=sig1; t=1711488022; bh=qIAdFChWmf6ZrJy/g3xow4BYa/ypzo75SQ2G6yidxNs=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=h4bCa38Xmh69FwJYixOBhsmrc6uExGGFDQbIfqtVTU5UiFYrXgma3+4OR7ZaGXPNG YFKP+ZuWhajjtL2hx+/qaq2Pp3Z3NcSYZjBgWluVMyCK0PdQewsskVKIwD2+emHJzn RIDpSbU9EDi2Ghvcp/iR/hesetrbxnsaWGgAxqRA0RXsbhxx4F64VirVH8+lz20PnL CGZYHOLAdEHWUHHne14N9Uh6azPYhFkpRMli1zQwVUyDZdDFeDiriM2uTAmmspsPNl nKFqI8vLsgL5iTIcqo2czGN2b/FX7NpL75pPHjOTMwTxkbDgX1Y4N+oDia4IEZLwq7 DdnkaWEmAAfgw== Received: from rosstimson.com (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01080501.me.com (Postfix) with ESMTPSA id 4B43C198015D; Tue, 26 Mar 2024 21:20:21 +0000 (UTC) From: Ross Timson To: emacs-orgmode@gnu.org Cc: Ross Timson Subject: [PATCH] lisp/ox-html.el: Add avif support for html export inline images Date: Tue, 26 Mar 2024 21:19:47 +0000 Message-ID: <20240326211947.88493-1-me@rosstimson.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: leqoilizo-hlhOJQpuX9WO1di2zfysRj X-Proofpoint-ORIG-GUID: leqoilizo-hlhOJQpuX9WO1di2zfysRj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-26_08,2024-03-21_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 clxscore=1030 suspectscore=0 bulkscore=0 malwarescore=0 adultscore=0 phishscore=0 mlxscore=0 mlxlogscore=504 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2403260154 Received-SPF: pass client-ip=17.57.155.22; envelope-from=me@rosstimson.com; helo=qs51p00im-qukt01080501.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: CB446688AD X-Spam-Score: -6.13 X-Migadu-Spam-Score: -6.13 X-Migadu-Scanner: mx10.migadu.com X-TUID: m1u3gKbcMswq * 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