Optimaler Schutz dank neuesten Technologie-Standards
+
diff --git a/README.md b/README.md index 72ef9415c..df88e98d1 100644 --- a/README.md +++ b/README.md @@ -14,3 +14,26 @@ * for production builds simply run `npm run build` * for local development run `npm run dev` * for local production tests `npm run serve` + +## Optional Dependencies for Size Optimizations + +### Font Subsets +To create subsets of font files, e.g. when we know only very few characters are required to render the title of the page "CRYPTOMATOR HUB": + +1. First install `pip install fonttools brotli` +2. `pyftsubset quicksand-bold.woff2 --text="CRYPTOMATOR HUB" --verbose --flavor=woff2 --output-file=quicksand-bold.reduced.woff2` + +### Image Conversions +Using WebP (for smaller images) or AVIF (for >80 kiB due to larger overhead) may yield in better compression. [Here](https://www.reddit.com/r/AV1/comments/aabqdc/lossless_compression_test_png_vs_webp_vs_avif/) is a (rather old) comparison benchmark. However, we need to test the best format ourselves. + +* `brew install libavif` (see [GitHub Project Page](https://github.com/AOMediaCodec/libavif?tab=readme-ov-file#installation) for other installation methods) + * Example (lossless): `avifenc -l input.png output.avif` + * Example (lossy): `avifenc --qcolor 70 --qalpha 100 --depth 8 input.png output.avif` +* `brew install libwebm` + * Example (lossless): `cwebp -preset drawing -lossless -z 6 input.png -o output.webp` + * Example (lossy): `cwebp -preset drawing -q 90 -alpha_q 100 input.png -o output.webp` +* `brew install optipng` + * Example: `optipng -o3 image.png` + +> [!TIP] +> If you see color banding in lossy conversions, try avif with 10 bit color depth. diff --git a/assets/css/custom.css b/assets/css/custom.css index 0e763bad4..4e453a054 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -1,6 +1,6 @@ /* custom classes: */ .header-bg { - background-image: url(/img/home/header-background.png), linear-gradient(to bottom, #0b0f17 0%, #143454 38%, #3f8bd9 72%, #9ac7f5 90%); + background-image: url(/img/home/header-background.avif), linear-gradient(to bottom, #0b0f17 0%, #143454 38%, #3f8bd9 72%, #9ac7f5 90%); background-size: auto 100%; } diff --git a/content/_index.de.html b/content/_index.de.html index 5f16dda04..9e9479b2a 100644 --- a/content/_index.de.html +++ b/content/_index.de.html @@ -69,7 +69,7 @@
+