feat: scale wallpaper
This commit is contained in:
3
generate-theme.sh
Executable file → Normal file
3
generate-theme.sh
Executable file → Normal file
@@ -26,7 +26,8 @@ prepare() {
|
|||||||
|
|
||||||
# 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"
|
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"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user