mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2025-05-02 06:26:20 -04:00
Complete tree image optimization
- recursively optimize images using optipng/jpegoptim benefits: + reduces image size + decreases load time + reduces memory usage
This commit is contained in:
parent
aee6b66dd8
commit
3f8e9a846b
7 changed files with 12 additions and 1 deletions
|
@ -175,6 +175,12 @@ enableVerity() {
|
|||
}
|
||||
export -f enableVerity;
|
||||
|
||||
optimizeImagesRecursive() {
|
||||
find "$1" -type f -name "*.jp*g" -print0 | xargs -0 -n1 -P 16 jpegoptim;
|
||||
find "$1" -type f -name "*.png" -print0 | xargs -0 -n1 -P 16 optipng;
|
||||
}
|
||||
export -f optimizeImagesRecursive;
|
||||
|
||||
hardenLocationConf() {
|
||||
gpsConfig=$1;
|
||||
#Attempt to get the real device directory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue