πŸ–₯️Mini PC Catalog
New

Click a model photo to enlarge it

Model photos now open full-screen on click, and 31 of them were re-fetched at up to 2048px after a quiet size cap had been degrading them.

Model photos got two upgrades at once. They are now clickable β€” tap the picture in a model's header and it opens full-screen, big enough to actually read a port label or count the vents. Press Esc, click outside it, or hit the close button to get back.

And there is more to look at than before. A third of the stored photos had quietly been saved at a reduced size, so zooming into them would have been pointless. 31 of them have been re-fetched at up to 2048 px, straight from the manufacturer's own store, and one more model gained its first photo. Where a vendor simply does not publish anything larger β€” which is the case for about a quarter of the catalog's photos β€” the picture stays as it is; there is nothing better to get.

The enlarged version is only downloaded when you actually ask for it, so pages open exactly as fast as they did yesterday.

Under the hood

The photo collector had been pointed at the public URL, where the reverse proxy caps a request body at 1 MB. On a rejected upload the collector silently stepped down its width ladder β€” 1600, 1200, 1000, 800 β€” until the file fit, which is how a third of the catalog ended up at 1280 px or less. Writes now go through an internal route with no such cap, the proxy limit was raised for the API path anyway, and the collector asks the vendor CDN for its largest named render.

2048 px rather than the vendor master: masters run to 4600 px and 5 MB, while a full-screen lightbox on a retina display never shows more than about 2100 px β€” the rest is disk we pay for and nobody can see. A new re-fetch mode compares each stored photo against what the vendor currently serves, replaces only the ones with a visible gain, and deletes the superseded file. The lightbox itself is a native <dialog>, so the focus trap and Esc handling come from the browser rather than from a library.

One more fix rode along: image URLs now pass withoutEnlargement, which stops the backend upscaling an 800 px source into a larger, blurrier file β€” measured at 30 KB of upscale versus 13 KB of the real thing.

commit 55f6875

πŸ’¬ Comments

No comments yet. Be the first to share your thoughts!

Sign in to leave a comment

Sign in to comment