Skip to content

Instantly share code, notes, and snippets.

@daltonbr
Created January 7, 2020 23:56
Show Gist options
  • Save daltonbr/40a5632e89fdb2bd4f670c907f97d061 to your computer and use it in GitHub Desktop.
Save daltonbr/40a5632e89fdb2bd4f670c907f97d061 to your computer and use it in GitHub Desktop.
Convert image formats and remove prefix
# remove prefix in files- batch
for file in bla_*; do mv "$file" "${file#bla_}";done;
# convert image (batch)
sudo apt-get install imagemagick
# convert all tif files into png
mogrify -format png *.tif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment