mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-12-22 06:51:54 +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
|
||||
}
|
||||
|
||||
# png to jpg 85
|
||||
# png to jpg
|
||||
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 97 > "$dir/$name.jpg" </dev/null
|
||||
rm -f "$f";
|
||||
done
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user