mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-12-28 17:09:39 -05:00
Add the wallpaper resize script
Should probably be moved into a separate branding repo later Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
parent
4d9a110970
commit
c69d8aec8b
33
Scripts/Generate_Wallpaper_Sizes.sh
Normal file
33
Scripts/Generate_Wallpaper_Sizes.sh
Normal file
@ -0,0 +1,33 @@
|
||||
#!/bin/sh
|
||||
#DivestOS: A privacy focused mobile distribution
|
||||
#Copyright (c) 2022 Divested Computing Group
|
||||
#
|
||||
#This program is free software: you can redistribute it and/or modify
|
||||
#it under the terms of the GNU General Public License as published by
|
||||
#the Free Software Foundation, either version 3 of the License, or
|
||||
#(at your option) any later version.
|
||||
#
|
||||
#This program is distributed in the hope that it will be useful,
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
#GNU General Public License for more details.
|
||||
#
|
||||
#You should have received a copy of the GNU General Public License
|
||||
#along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
mkdir drawable-nodpi drawable-hdpi drawable-xhdpi drawable-xxhdpi drawable-xxxhdpi drawable-sw600dp-nodpi drawable-sw720dp-nodpi;
|
||||
|
||||
cp -fv "$1" drawable-nodpi/default_wallpaper.png;
|
||||
cp -fv "$1" drawable-hdpi/default_wallpaper.png;
|
||||
cp -fv "$1" drawable-xhdpi/default_wallpaper.png;
|
||||
cp -fv "$1" drawable-xxhdpi/default_wallpaper.png;
|
||||
cp -fv "$1" drawable-xxxhdpi/default_wallpaper.png;
|
||||
|
||||
mogrify -resize x960 -gravity "$2" -extent 960x960 drawable-nodpi/default_wallpaper.png;
|
||||
mogrify -resize x1080 -gravity "$2" -extent 1080x1080 drawable-hdpi/default_wallpaper.png;
|
||||
mogrify -resize x1440 -gravity "$2" -extent 1440x1440 drawable-xhdpi/default_wallpaper.png;
|
||||
mogrify -resize x1920 -gravity "$2" -extent 1920x1920 drawable-xxhdpi/default_wallpaper.png;
|
||||
mogrify -resize x2560 -gravity "$2" -extent 2560x2560 drawable-xxxhdpi/default_wallpaper.png;
|
||||
|
||||
cp -fv drawable-xxhdpi/default_wallpaper.png drawable-sw600dp-nodpi/;
|
||||
cp -fv drawable-xxhdpi/default_wallpaper.png drawable-sw720dp-nodpi/;
|
Loading…
Reference in New Issue
Block a user