Increase jpg quality

This commit is contained in:
Jan Jastrow 2023-09-18 01:40:59 +02:00
parent d48a59e74b
commit d1425c416d

View File

@ -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
} }