Higher quality png2jpg

This commit is contained in:
Jan Jastrow 2023-10-20 16:38:38 +02:00
parent 5c48c8bd51
commit c3eed3ba02

View File

@ -49,7 +49,7 @@ function pushover() {
https://api.pushover.net/1/messages.json
}
# png to jpg 85
# png to jpg 95
function png2web() {
findpath=$1
: "${findpath:="."}"
@ -57,7 +57,7 @@ function png2web() {
dir=$(dirname "$f");
file=$(basename "$f");
name="${file%.*}";
magick convert "$f" pnm:- | cjpeg -progressive -quality 85 > "$dir/$name.jpg" </dev/null
magick convert "$f" pnm:- | cjpeg -progressive -quality 95 > "$dir/$name.jpg" </dev/null
rm -f "$f";
done
}