Guest User

Untitled

a guest
May 26th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/bash
  2. echo "Converting normal tif to pyramidal tif"
  3. num_tif_files=$(ls -l *.tif | wc -l)
  4. echo "Total tif files:" $num_tif_files
  5.  
  6. num=0
  7. for file in *.tif ; do
  8. num=$[$num + 1]
  9. echo "$num" $file
  10. convert "$file" -compress jpeg -quality 90 -define tiff:tile-geometry=256x256 ptif:"wsi_$file"
  11. done
Add Comment
Please, Sign In to add comment