About Unsung: Pixel-perfect
This is a meta post about this very blog. If that’s not interesting to you, skip to the next one!
My villain origin story must be Slack. No, not the constant overwhelm of notifications, or the “everything is always important, all the time” philosophy, or the fact that information put in Slack is very hard to retrieve later.
No, it is how Slack shows every screenshot blown up, and often doesn’t allow you to get to the natural size. Screenshots are not photos; they have inherent default dimensions, and they should always start there, at 100%, pixel-to-a-beautiful-pixel, properly accounting for retina displays. Yet, throughout however many years and countless design conversations on the platform, Slack never understood how important it is to see a screenshot properly – and designers using the product were deprived of an important signal.
(Here’s me trying in vein to zoom out a screenshot to its natural size.)
Of course, I can’t only blame Slack. Websites don’t typically do a better job with screenshot sizing, and that assumes they even… exist. It’s frightening how much of visual interface history is already gone. Look up a piece of software from even ten years ago and often you will find either nothing, or a one-two punch of bad JPEG compression and reduced resolution. And videos? Forget it. You’ll be lucky to find a choppy GIF – technology whose newest, most advanced ever version, dates back to when the web didn’t even yet exist.
(Here’s a bad case – a GIF – followed by a good case: a video. The GIF here is simulated by a video, because Unsung is gifophobic!)
I also care about visual storytelling. A picture is worth a thousand words, a video a thousand pictures, a perfectly trimmed video a thousand untrimmed videos, and so on. (Please don’t quote me on the exact math here.)
Quality, preservation, storytelling – these might be the themes for visuals on Unsung, which I wanted to make a world-class destination for screenshots.
A world-class destination for screenshots. Yeah, I know how silly it sounds. But I do care. This means: high-quality imagery, screenshots always shown at the appropriate size (unless physically impossible), and screenshots that understand not just transparency, but also soft shadows. And then, videos that feel exactly like screenshots. All the same principles, all the same precision and control, all the same lightness of just being there, next to text, without much fuss.
To be honest, this part has occasionally been exhausting. I have spent so many hours figuring it out and pushing for this. (Just earlier this week, I wasted half a day debugging and making sure Safari doesn’t stop my videos randomly.)
I’m learning and being appreciative of that, but it’s not always fun. CSS still handles image aspect ratio poorly, often wanting to stretch images – which is a big no-no. On top of that, just like Slack disrespects screenshots, Safari (and other browsers, to a lesser extent) don’t have a solid understanding of the nuances separating screenshot-videos from movies – making me, and sometimes you, jump through hoops, and unwillingly lending support to GIFs, a format worse in every possible respect, yet always allowed to play without any issues.
And, it breaks my heart that a lot of what I want is impossible. There is no way to put nice videos in my weekly email newsletter, as email design in general was frozen in time not far from the era when GIF was the hottest thing on the block. There is no format to save both dark and light theme screenshots in one place. Videos do not support modern saturated colors well (compare the calculator video above with screenshots below).
But, enough whining and venting. Because I am still really proud of where Unsung is: those nice, sharp, precise pixels that hopefully just work: close to perfection, yet unnoticed by most. (True to the theme – and the name! – of this blog.) The tech behind is not meant to draw attention to itself, but to the contents – maybe those will help you understand something, or light up a different side of your brain, or inspire something new, or even just delight you, in a way only a good clump of pixels can.
Here are some rules I established over the last year:
- Show images and videos in retina quality:
- Show images and videos in a 1:1 scale unless they don’t fit:
- Avoid any visible compression artifacts:
- Use transparency (especially important in dark mode):
- Perfectly align everything, accounting for soft shadows.
- For videos, no UI or chrome on top that covers content and forces you to wait until it disappears.
- For videos, hide the recording indicators if possible, so the experience is more true to how it looks to the user (still working on it).
- Show the device frame – like a mobile phone – whenever appropriate. (Had particular fun with Playdate’s.)
- Allow precision – did you know you can press ← → atop any video on Unsung to advance by a frame? Even if you move the cursor away?
- Keep non-retina pixels sharp, rather than fuzzy:
- No random blinking or detritus during loading.
- Videos play and loop automatically, but they only start playing as they come into view, so you don’t encounter them mid-loop.
Here are some things I learned:
- Transparent video exists and works on all the platforms.
- There are many types of alpha channels.
- For older screenshots and videos, while you can sometimes ensure their sharpness when blown up with CSS, it’s best just to resize them internally to be 2x or 4x bigger with nearest neighbor algorithm.
- I verified you can save screen recordings in 120fps, although I have not researched it more yet. I know not all browsers support the playback.
- Some browsers just blink through the background when you transition between the thumbnail and the video. It’s likely fixable, awkwardly, but I am still fine-tuning that.
(I have put more of what I learned on the technical details and cursed knowledge pages.)
I am hoping to experiment more. I have been playing with 120fps videos, with Display P3 videos (I have an idea!), and that holy grail: dark/light mode screenshots and videos at once. I also want to make it better to look at desktop-sized screenshots on mobile phones – that combination is unpleasant right now. Please send me feedback and ideas.
The next post? Some of the tools I built for this mission.