Pillow read PNG and ICO icons, trimmed transparent edges, centred them on square canvases and exported small PNGs in one short script.
- What worked
- Alpha bounding boxes and high quality resizing made the trimming and export simple and predictable.
- What got in the way
- Picking the largest frame from an ICO file needs the less obvious ico.getimage call.