mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-18 03:29:17 +00:00
95a1b35c917f964d0419e8105954c09ab22e4aaf
encodedWith to contain resolved values
We already await the promises that we set on the `encodedWith` instead of setting already
resolved promises to `encodedWith` we can set the resolved values
So, the users can use like
`const { mozjpeg: { binary } } = await image.encode({ mozjpeg })` or
they can first run
`await image.encode({ mozjpeg })` and then
`image.encodedWith.mozjpeg.binary`
Squoosh!
Squoosh is an image compression web app that reduces image sizes through numerous formats.
API & CLI
Squoosh has an API and a CLI to compress many images at once.
Privacy
Squoosh does not send your image to a server. All image compression processes locally.
However, Squoosh utilizes Google Analytics to collect the following:
- Basic visitor data.
- The before and after image size value.
- If Squoosh PWA, the type of Squoosh installation.
- If Squoosh PWA, the installation time and date.
Developing
To develop for Squoosh:
- Clone the repository
- To install node packages, run:
npm install - Then build the app by running:
npm run build - After building, start the development server by running:
npm run dev
Contributing
Squoosh is an open-source project that appreciates all community involvement. To contribute to the project, follow the contribute guide.
Description
Languages
TypeScript
62.5%
JavaScript
10%
C++
9.5%
CSS
8.9%
Makefile
3.9%
Other
5.2%