Skip to content

Instantly share code, notes, and snippets.


Joris Vanhecke vanhecke

View GitHub Profile
jcs / netpbm-resize pseudo-code
Created Jun 4, 2016
using netpbm to resize jpegs and pngs of arbitrary size to fixed square, preserving ratio with transparency
View netpbm-resize pseudo-code
# 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