Menu

My Selfie Looks Fine — Why Is the Malfoid Portrait Mushy? Detecting JPEG Block Grids, Ghosts and Screenshots in Python
📰

My Selfie Looks Fine — Why Is the Malfoid Portrait Mushy? Detecting JPEG Block Grids, Ghosts and Screenshots in Python

DEV Community: computervision·Peiguan·about 14 hours ago
#naQPyvof
Reading 0:00
15s threshold

People ask assistants things like "my selfie looks fine, why is the AI portrait mushy?" and "can I upload a WhatsApp or Instagram screenshot?" The short version is on the photo guide at the studio I build, malfoidai.com : "The original photo beats screenshots, heavy compression, tiny crops." A still 3:4 Malfoid portrait is $4.99 (2 credits), watermark-free, and a delivered one isn't refunded as a change of mind, so a mushy source is an expensive way to find that out.

This post is a small Python detector for the three things that make a "fine looking" selfie a bad upload: an 8×8 JPEG block grid, a JPEG-ghost residual (the Farid 2009 trick), and a crop+scale+JPEG "screenshot of a photo". I measured it on synthetic, shape-only sitters (no real face, no AI output): an original PNG, JPEG at quality 95/80/60/40/20, a two-pass messenger-like recompress, and a screenshot chain.…

Continue reading — create a free account

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