Sophie Hirn 2 years ago
parent
commit
ac1bd70e48
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      .local/bin/mkwp

+ 2
- 2
.local/bin/mkwp View File

@@ -42,7 +42,7 @@ function screenres() {

function run() {
echo "$@"
"$@"
"$@" || exit 1
}

function main() {
@@ -82,7 +82,7 @@ function main() {
shift
done

run convert -respect-parenthesis "$INDIR/panorama.png" -resize "${off}x${maxh}^" "${splitargs[@]}" "jpg:/dev/null"
run convert -respect-parenthesis "$INDIR/panorama.png" -gravity Center -resize "${off}x${maxh}^" -crop "${off}x${maxh}+0+0^" "${splitargs[@]}" "jpg:/dev/null"
fi

run convert -respect-parenthesis -size "$(screenres)" 'xc:#000000' "${joinargs[@]}" "$all"

Loading…
Cancel
Save