This file contains 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
# | |
# solution for resizing jpegs and pngs of arbitrary size down to a 72x72 | |
# square, preserving source ratio, and filling non-square sides with | |
# transparency | |
# | |
# ahead of time, convert a transparent 72x72 png to blank-72.pam and save | |
# it with your code | |
# | |
# pngtopam -quiet -alphapam < blank-72.png > blank-72.pam | |
# |