From f169569807292ef199318df338daef4e547169f2 Mon Sep 17 00:00:00 2001 From: Gusted Date: Sat, 30 Nov 2024 13:13:22 +0000 Subject: [PATCH] chore: disable avif transcoding (#495) The trade-off is not worth it, it isn't *that* good for screenshots and it uses too much memory and increases build time by a order of magnitude Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/495 Co-authored-by: Gusted Co-committed-by: Gusted --- content/improving-documentation/screenshots.md | 2 +- eleventy.config.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/improving-documentation/screenshots.md b/content/improving-documentation/screenshots.md index 7ee49c7..54ada42 100644 --- a/content/improving-documentation/screenshots.md +++ b/content/improving-documentation/screenshots.md @@ -17,4 +17,4 @@ On the technical side, screenshots should ideally be created in PNG and WebP or Please put screenshots under `content/images/[section]/[article]/...` where `[section]` and `[article]` are the kebab-cased names of the section or your article, respectively. -Codeberg Documentation encodes images to Avif, WebP and JPEG format on build time, in order to increase page loading speed and reduce traffic. +Codeberg Documentation encodes images to WebP, JPEG and PNG format on build time, in order to increase page loading speed and reduce traffic. diff --git a/eleventy.config.mjs b/eleventy.config.mjs index 346e7fa..fbc751e 100644 --- a/eleventy.config.mjs +++ b/eleventy.config.mjs @@ -14,7 +14,7 @@ export default function (eleventyConfig) { eleventyConfig.addPlugin(syntaxHighlightingPlugin); eleventyConfig.addPlugin(eleventyImageTransformPlugin, { extensions: 'html', - formats: ['avif', 'webp', 'jpeg'], + formats: ['webp', 'jpeg', 'png'], widths: ['auto'], defaultAttributes: { loading: 'lazy',