Created
November 22, 2016 15:47
-
-
Save nicdoye/e580a2cd56aa1ed4bb95e74b98cb5b0f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A quick alias for those of us without such a command | |
tiff2png () | |
{ | |
local ifile=$1 | |
local ofile=$(dirname "${ifile}")/$(basename "${ifile}" .tiff).png | |
tifftopnm < "${ifile}"| pnmtopng > "${ofile}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment