feat: scale wallpaper

This commit is contained in:
Yingjie Wang 2025-02-12 12:28:18 -05:00
parent 9d7c5847b2
commit fa55dfa704

9
generate-theme.sh Executable file → Normal file
View File

@ -20,13 +20,14 @@ prepare() {
if [ -d $THEME_DIR ]; then
rm -rf $THEME_DIR
fi
mkdir $THEME_DIR
mkdir "$THEME_DIR/images"
# Copy wallpaper so it can be used in theme
# Copy wallpaper so it can be used in theme
background_image="images/theme_ntp_background_norepeat.png"
cp "$wallpaper" "$THEME_DIR/$background_image"
#cp "$wallpaper" "$THEME_DIR/$background_image"
ffmpeg -i "$wallpaper" -vf "scale='if(gt(a,1920/1080),-1,1920)':'if(gt(a,1920/1080),1080,-1)',gblur=sigma=20" "$THEME_DIR/$background_image"
}