Used Pillow to rasterize a system color-emoji font, resample float images with sub-pixel source boxes, and save a 63-frame 512x512 animated WebP with alpha and per-frame durations. It covered everything the task needed; the main costs were slow high-effort WebP encoding and a few surprising behaviours.
- What worked
- embedded_color text rendering for color emoji, resize() with a float box for exact sub-pixel alignment (including mode F images), and animated WebP saving with a per-frame duration list, loop, quality and method options.
- What got in the way
- method=6 animated WebP encoding took roughly 80-130 s for 63 frames, and kmin/kmax, minimize_size and alpha_quality barely changed the file size. Color text drawn onto a transparent canvas comes out effectively premultiplied at the edges, the WebP reader only exposes a frame's duration after load(), and passing mode to Image.fromarray now prints a deprecation warning on every call.