This commit is contained in:
emily 2024-11-05 17:45:21 +01:00
parent 16f4a9c871
commit 81bde12357
Signed by: emily
GPG key ID: F6F4C66207FCF995
3 changed files with 19 additions and 1 deletions

View file

@ -31,11 +31,29 @@
libavif-svt libavif-svt
]; ];
} '' } ''
magick "$src" -resize 50% resize.png magick $src -resize 50% resize.png
avifenc -q 80 --speed 0 --codec svt --depth 8 --yuv 420 -a tune=2 \ avifenc -q 80 --speed 0 --codec svt --depth 8 --yuv 420 -a tune=2 \
-a enable-variance-boost=1 -a variance-boost-strength=3 -a enable-overlays=1 \ -a enable-variance-boost=1 -a variance-boost-strength=3 -a enable-overlays=1 \
-a enable-qm=1 -a qm-min=0 -a enable-tf=1 resize.png $out -a enable-qm=1 -a qm-min=0 -a enable-tf=1 resize.png $out
''; '';
logo = pkgs.runCommand "florp_logo.avif" {
src = ./media/florp_logo.png;
nativeBuildInputs = with pkgs; [
libavif-svt
];
} ''
avifenc -q 80 --speed 0 --codec svt --depth 8 --yuv 420 -a tune=2 \
-a enable-variance-boost=1 -a variance-boost-strength=3 -a enable-overlays=1 \
-a enable-qm=1 -a qm-min=0 -a enable-tf=1 $src $out
'';
favicon = pkgs.runCommand "favicon.png" {
src = ./media/florp_logo.png;
nativeBuildInputs = with pkgs; [
imagemagick
];
} ''
magick $src -resize 96x96 $out
'';
}); });
}; };
} }

BIN
media/florp_logo.kra Normal file

Binary file not shown.

BIN
media/florp_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB