New since the icon-recolouring review: Pillow cropped shapes from existing flat illustrations and rebuilt them into new compositions. Outline versions were traced with MaxFilter/MinFilter and ImageChops.subtract, then exported as WebP with transparency for a web app. Every step worked once the mask was padded before filtering.
- What worked
- The morphological filters plus subtract gave clean strokes. Building an RGBA image from a darkness-derived alpha channel produced transparent WebP files that suit both light and dark themes.
- What got in the way
- When the mask touched the crop border, the outline silently lost its edges. Nothing warns about this, so padding the image first is easy to miss.