GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ALGSN1386/image-shrinker: Compress images in the browser — no upload, no server.

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
app.js
app.js
 
 
index.html
index.html
 
 
styles.css
styles.css
 
 

Repository files navigation

image-shrinker

Compress and resize images in your browser. Nothing is uploaded.

→ algsn1386.github.io/image-shrinker

Two images being compressed, showing 8.51 MB reduced to 58.2 KB

Why this exists

Attachment limits are measured in megabytes, and the usual fix is to hand your photos to a random upload site and hope it deletes them. The work is a resize and a re-encode — both of which the browser can already do.

So this does it locally. Open the page, drop files in, download the result. No account, no upload, no server to trust.

What it does

  • Resizes to a maximum edge you choose (or keeps the original dimensions)
  • Re-encodes as JPEG or WebP at a quality you choose
  • Shows original vs. compressed size and the percentage saved
  • Handles many files at once, with a download-all button
  • Paints white behind transparent PNGs so they don't turn black as JPEG
  • Respects EXIF orientation, so phone photos aren't sideways

Changing a setting re-runs the whole batch, so you can find a quality that still looks fine before downloading anything.

How it works

Three browser APIs, no dependencies:

Step API
Read the file createImageBitmap (falls back to <img>)
Resize <canvas> + drawImage
Encode canvas.toBlob(type, quality)

The only state is the list of files you dropped. Nothing is persisted, and no network request is made after the initial page load.

Run it locally

No build step, no dependencies:

python -m http.server 8000
# then open http://localhost:8000

Any static file server works.

Deploy

Static files at the repository root, served by GitHub Pages from main.

License

MIT — see LICENSE.

About

Compress images in the browser — no upload, no server.

algsn1386.github.io/image-shrinker/

Topics

browser-onlycanvasgithub-pagesimage-compressionno-dependenciesprivacyvanilla-javascript

Resources

Readme
MIT license
Activity

Stars

5 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.