Do not enlarge pictures in quinq-size. - various - Various utilities developed at bitreich.
(HTM) git clone git://bitreich.org/various/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/various/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
---
(DIR) commit 3c90f4e394feef2e67962bf3d6d02d01bb628a22
(DIR) parent f73345a2bafe79e034ffe3b27a1758e5482962cc
(HTM) Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 25 Sep 2022 17:16:55 +0200
Do not enlarge pictures in quinq-size.
We only want to shrink them,
not enlarge them if they're smaller
than the target size.
Diffstat:
M quinq-size | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/quinq-size b/quinq-size
@@ -12,7 +12,7 @@ function toquinqsize {
output="${filename%.*}_quinqsize.${filename##*.}"
case "${mimetype}" in
image/*)
- convert "$filename" -resize 1024 "${output}";
+ convert "$filename" -resize '1024>' "${output}";
;;
video/*)
ffmpeg -i "${filename}" -vf scale=800:-1 "${output}";