Converting PNG to TIFF

May 7, 2013

I had a directory full of PNG files that I wanted to convert to TIFF. This can be done using image magick:

$ convert file1.png file1.tiff

This becomes a bit tedious on a directory full of files. You can do the entire directory at once using the following at the command prompt:

$ for f in *.png; do echo "converting $f"; convert "$f" "$(basename "$f" .png).tiff"; done