prepare performance improvement for rice thumbnails

This commit is contained in:
Christofer 2023-08-28 10:16:45 +04:00
parent a08e286dea
commit 4617a8de8b
5 changed files with 10 additions and 0 deletions

4
.gitignore vendored
View file

@ -2,6 +2,10 @@ old
.svelte-kit .svelte-kit
build build
# For the generated blurred images
**/generated_*
# Logs # Logs
logs logs
*.log *.log

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 607 KiB

View file

@ -0,0 +1,6 @@
The images here a displayed on the homepage.
For their effect to work, they need a blurred version, which gets generated on build or manually.
This is to prevent lag especially on mobile by removing the need for the CSS blur filter.
`magick convert -gaussian-blur 0x20 -modulate 100,300,100 /home/vdawg/Downloads/tmp/a/img4.webp /home/vdawg/Downloads/tmp/a/img4_xx.webp`