PFP Studio Devlog #2
the scoring system is done.
four checks per photo: centering, size, brightness, sharpness. each one reads the actual pixel data from the face region and turns it into a number. combine them with weights, sort the results, and the best photo rises to the top.
the sharpness one was the most interesting to build. it loops through every pixel and compares it to the pixels directly to its right and below. blurry photos have smooth transitions. sharp photos have high contrast between neighbors. the bigger the average difference, the sharper the photo.
the ui got a full revamp too.
went from raw unstyled html to something that actually looks like a product. warm cream background, Syne for the headings, orange accent for the winner card. each result staggered in with a fade. the #1 card gets an orange ring and shows the “why it won” explanation underneath.
it works.
uploaded 5 photos, hit rank, and the results actually make sense. the best-lit, well-centered shot came out on top. the blurry one ranked last.
what’s next: loading states so it doesn’t feel frozen while processing, and filling out the empty state so the page doesn’t look bare on load.
then it ships.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.