You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 line
406 B

  1. #!/bin/bash
  2. # alias vip='bash /home/root/vip.sh'
  3. # vip https://cdn.esahubble.org/archives/images/publicationjpg/heic1501a.jpg
  4. media_dir="./"
  5. # media_dir="/home/root/media/files/virages"
  6. fullname=$(basename -- "$1")
  7. name=$(basename -- "$fullname")
  8. name="${fullname%.*}"
  9. server_url="https://files.erudi.fr/virages"
  10. cd $media_dir
  11. wget $1
  12. vips dzsave $fullname $name --layout=dz --tile-size=256 --overlap=0