Skip to content

Instantly share code, notes, and snippets.

View vanhecke's full-sized avatar
😇

Joris Vanhecke vanhecke

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