Image Magic 
https://imagemagick.org/  convert input.png -bordercolor white -border 0 ( -clone 0 -resize 16x16 ) (...
Tags: whatdidilearntoday, image, commandline