Skip to content

Instantly share code, notes, and snippets.

View PingjunChen's full-sized avatar
🎯
Focusing

Pingjun Chen PingjunChen

🎯
Focusing
View GitHub Profile
@PingjunChen
PingjunChen / tile
Created January 27, 2022 20:51 — forked from dellsystem/tile
converting tifs to pyramidal tiffs
#!/usr/bin/env bash
# A bash script for converting all the files in a directory to pyramidal tiff
# Pass the directory the images are stored in as an argument
# But it will put the images in the current directory ... to be fixed
if [ $# -lt 3 ]; then
echo 'Usage: tile <directory> <extension> <desired_prefix>'
else
echo 'Looking for all files in directory: $1/'