Skip to content
usamarslanPublic

Repository files navigation

imgversus

A simple image comparison tool. Drop in two or more images, click to flip between them or drag a slider, and share the link.

→ imgversus.com

What it's for

imgversus stacks two or more images on top of each other so you can see exactly what changed. Click the image to flip between them, or drag a line across. It works well for game graphics comparisons, before/after edits, photo processing, design revisions, anything where the difference is in the details.

I built it after imgsli shut down. I used it for years to compare game screenshots on NeoGAF and Reddit (quality vs. performance mode, ray tracing on vs. off), and when it was gone, every alternative I tried was either cluttered or a pain to use. So I made one for myself: drop your images in, share the link. No accounts, no editor, no settings page.

After a while I figured other people might need it too, so here it is. If you're using it for something completely different, or there's something you wish it did, use the feedback button on the site or open an issue. I read all of it.

What it does

  • Upload 2 to 12 images, get a short link like imgversus.com/a/Xk3pQ9aB
  • Click-to-switch (the default): click the image to flip between two images in place
  • Slider mode: drag a line across to reveal one image over the other
  • Image pickers in the top corners when you have more than two images
  • Link straight to a pair: imgversus.com/a/Xk3pQ9aB/2/4 opens image 2 against image 4. The address bar follows whatever you pick, so "Copy link" always shares what you're looking at
  • Fix a typo or take it down: the browser you uploaded from can rename the title and images, or delete the whole comparison. Nobody else gets that option
  • True 1:1 view: one image pixel on one screen pixel, no scaling, with your display scaling (125%, 150%, Retina) taken into account
  • Fullscreen that's actually full: the bar and pickers get out of the way until you move the mouse to the top
  • The current scale is always shown in the corner, so you know whether you're looking at a scaled image
  • Zoom with the mouse wheel or pinch. Above 1:1 it steps in whole multiples (200%, 300%…) and shows pixels as they are, no smoothing
  • Images are stored as you uploaded them, no recompression
  • Works on phones
  • 18 languages, picked from your browser automatically

Keyboard shortcuts

Key Does
← → Move the slider (hold Shift for bigger steps)
1–9 Pick the right image
Shift + 1–9 Pick the left image
S Swap left and right
M Switch between slider and click-to-switch
Space Flip images in click-to-switch mode
F Fullscreen
N Actual size (1:1)
+ - Zoom in / out
0 Fit to screen

Do links expire?

No. A comparison stays up for as long as the site is running, unless you delete it yourself.

How does deleting work without an account?

When you upload, the server hands your browser a random secret key and keeps only a hash of it. The key is saved in your browser (local storage), not in the share link, so people you send the link to can look but can't edit or delete anything. If you clear your browser data or switch devices, you lose the key and with it the option to edit or delete. In that case use the feedback button and I'll take it down.

Privacy

The site counts uploads and link views, along with the visitor's country as Cloudflare reports it, so I can tell whether anyone's actually using it. There are no cookies, no tracking scripts and nothing personal. The code is open, so you can check exactly what gets recorded in lib/shared.js. The numbers themselves stay private in my Cloudflare account.

Running it yourself

It's a static page plus a few Cloudflare Pages Functions, with images stored in Cloudflare KV. Everything fits in Cloudflare's free tier.

npm install
npm run dev        # http://localhost:8788

To deploy to your own Cloudflare account, see the setup steps in docs/KURULUM.md (in Turkish), or in short:

npx wrangler login
npx wrangler kv namespace create IMAGES   # put the id in wrangler.toml
npm run deploy

Changelog

See CHANGELOG.md, or the version number at the bottom of the site.

Support

If imgversus saves you some time, you can sponsor it on GitHub. Totally optional.