mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-24 11:22:50 +01:00
Higher quality png2jpg
This commit is contained in:
parent
5c48c8bd51
commit
c3eed3ba02
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user