aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/imgres
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/.local/bin/imgres')
-rwxr-xr-xdotfiles/.local/bin/imgres10
1 files changed, 10 insertions, 0 deletions
diff --git a/dotfiles/.local/bin/imgres b/dotfiles/.local/bin/imgres
index 4eec5f6..ec7a20d 100755
--- a/dotfiles/.local/bin/imgres
+++ b/dotfiles/.local/bin/imgres
@@ -21,6 +21,16 @@ case "$option" in
-quality 80 \
"$output"
;;
+ photo)
+ convert "$input" \
+ -strip \
+ -interlace plane \
+ -define jpeg:dct-method=float \
+ -sampling-factor 4:2:0 \
+ -resize 1600x900 \
+ -quality 80 \
+ "$output"
+ ;;
wallpaper)
convert "$input" -resize 2560x1440^ -quality 90 "$output"
;;