Changeset - 69e323ad681a
[Not reviewed]
default
0 1 0
Dennis Fink - 3 years ago 2021-08-15 21:08:56
dennis.fink@c3l.lu
Use manual cpu counting in optipng
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
optipng.sh
Show inline comments
 
#!/bin/bash
 

	
 
find ./$1 -type f -name "*.png" -print0 | xargs -0 -n1 -P0 optipng -quiet -o7
 
find ./$1 -type f -name "*.png" -print0 | xargs -0 -n1 -P$(($(lscpu -p | grep -v "#" | wc -l) * 2)) optipng -quiet -o7
0 comments (0 inline, 0 general)