forked from external-repos/squoosh
129c33fa12298390246e92cb935cc795635d7784
* Add basic history handling (#288) * Move history management to Compress component * Remove unused pathname property from history * Rename history listener functions * Use history.back instead of history.replace * Support going forward in history. Persist last selected file in runtime * Add netlify redirects file * Use 301 status code for redirect * Cleanup _redirects file * Use 200 status code for redirects * Simplify onPopState function * Always redirect to 301 with url rewrite * Remove redundant history function * Remove file check on render. Call openEditor synchronously * Use pushState only if user is on the initial screen. Mount history listener in constructor * Simplify openEditor condition * Update early return condition * Rolling abstractions back into the main component
Squoosh!
Squoosh is an image compression web app that allows you to dive into the advanced options provided by various image compressors.
Privacy
Google Analytics is used to record the following:
- Basic visit data.
- Before and after image size once an image is downloaded. These values are rounded to the nearest kilobyte.
Image compression is handled locally; no additional data is sent to the server.
Building locally
Clone the repo, and:
npm install
npm run build
You can run the development server with:
npm start
Description
Languages
TypeScript
62.5%
JavaScript
10%
C++
9.5%
CSS
8.9%
Makefile
3.9%
Other
5.2%