mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-25 03:42:52 +01:00
Increase jpg quality
This commit is contained in:
parent
d48a59e74b
commit
d1425c416d
@ -49,7 +49,7 @@ function pushover() {
|
|||||||
https://api.pushover.net/1/messages.json
|
https://api.pushover.net/1/messages.json
|
||||||
}
|
}
|
||||||
|
|
||||||
# png to jpg 85
|
# png to jpg
|
||||||
function png2web() {
|
function png2web() {
|
||||||
findpath=$1
|
findpath=$1
|
||||||
: "${findpath:="."}"
|
: "${findpath:="."}"
|
||||||
@ -57,7 +57,7 @@ function png2web() {
|
|||||||
dir=$(dirname "$f");
|
dir=$(dirname "$f");
|
||||||
file=$(basename "$f");
|
file=$(basename "$f");
|
||||||
name="${file%.*}";
|
name="${file%.*}";
|
||||||
magick convert "$f" pnm:- | cjpeg -progressive -quality 85 > "$dir/$name.jpg" </dev/null
|
magick convert "$f" pnm:- | cjpeg -progressive -quality 97 > "$dir/$name.jpg" </dev/null
|
||||||
rm -f "$f";
|
rm -f "$f";
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user