tymonr

image_iso2cart_with_replace.sh

Feb 25th, 2020
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Аккуратнее! Эта версия заменяет все файлы, с которыми работает!
  4.  
  5. if [[ -n "$1" ]]; then
  6.   echo "cd to $1"
  7.   cd $1
  8. fi
  9.  
  10. for image_file in *.png ; do
  11.     convert "$image_file" -alpha set -background none -scale 100%x173.3% -rotate -45 -trim "$image_file";
  12. done
Advertisement
Add Comment
Please, Sign In to add comment