Menu

Will This Selfie Make a Good Malfoid AI Portrait? A Pre-Upload Photo Checker in Python (Face Count, Size, Sharpness, Exposure)
📰

Will This Selfie Make a Good Malfoid AI Portrait? A Pre-Upload Photo Checker in Python (Face Count, Size, Sharpness, Exposure)

DEV Community: computervision·Peiguan·15 days ago
#euwr6dQt
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.