Mite
This commit is contained in:
parent
90ca29d35c
commit
45058b4272
5 changed files with 162 additions and 45 deletions
|
@ -146,6 +146,23 @@ do
|
|||
|
||||
done <<< "$(find "$dir/" -type f -iname "*.png")"
|
||||
|
||||
# FLAC (requires reflac)
|
||||
while read music
|
||||
do
|
||||
if [ -z "$music" ]; then continue; fi
|
||||
echo Processing $music
|
||||
|
||||
temp_dir=$(mktemp --directory)
|
||||
temp="$temp_dir/to_optimize.flac"
|
||||
cp "$music" "$temp"
|
||||
reflac --best "$temp_dir"
|
||||
echo "→ Optimize done"
|
||||
|
||||
replace "$temp" "$music"
|
||||
rm -rf "$temp_dir"
|
||||
|
||||
done <<< "$(find "$dir/" -type f -iname "*.flac")"
|
||||
|
||||
# # SVG (requires scour)
|
||||
# while read image
|
||||
# do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue