Skip to content
← Projects

Resize Game

Guess the width and height in pixels of a random image you see for two seconds. Built for the midudev × Cloudinary hackathon.

archived2024repo ↗
sveltetypescripttailwindvitecloudinary#game#hackathon

Built for the midudev × Cloudinary hackathon in December 2024. The sprint ran a full week, but I only had a couple of free days to ship something, so the idea had to stay small. Most participants went for image manipulation and optimisation with Astro and astro-cloudinary. I took the playful angle, leaning on Cloudinary's ability to serve images at arbitrary on-demand resolutions to build a guessing game around it.

Screenshot of the Resize Game page: the 'How to play' explainer on the left and on the right the guess form with width and height inputs, a Submit button, and a 'Show hint' link.
Screenshot recovered from web.archive.org. The hosted version of the game is no longer available.

How to play#

  1. Two number inputs. Images are generated anywhere between 50 and 300 pixels on each axis.

  2. The game shows the actual dimensions and an accuracy percentage based on how close both axes were. If you used hints, that flag is shown next to the percentage.

After submitting press Start again to roll a new round. The fun is in calibrating your eye round after round.

Stack#

LayerChoice
FrameworkSvelte
LanguageTypeScript
StylingTailwind
Image sourceCloudinary (@cloudinary/url-gen)
BuildVite

Cloudinary serves the random images and lets the client request them at arbitrary widths and heights, perfect for a guessing game where the answer must be unpredictable but verifiable.

sn4pe/resize-game-cloudinary-hackathonHackathon project: guess the size of a flashed image.Svelte