November 3, 2026. I build malfoidai.com , a small studio that turns one photo of an adult into a still 3:4 Malfoid (Female Malfoy) fan portrait. This post is about the step before any of that: picking the photo. The script below is mine and runs locally. It doesn't upload anything.
Short answer: the photo decides most of the result. The studio's own photo guide puts it as "one clear, front-facing photo of one adult with the whole face visible, in even light and without a heavy filter. JPEG, PNG or WebP up to 10 MB." Most of that can be checked by a machine in under a second: is it a supported file, is there exactly one face, is the face big enough, is it sharp, is it lit. So I wrote a 100-line checker that does those checks before you pay $4.99 for a portrait ( pricing ).
Why check the photo at all?
A one-photo portrait pipeline keeps the face from your picture and replaces everything else: hair, clothes, light, background.…