Local Image Compression Tool
Tired of unreliable online image compression tools that compromise quality or hide functionality behind paywalls? This project offers a powerful, privacy-first solution for image compression that runs entirely on your local machine. With Node.js and Next.js, you can compress images with ease, retaining control over quality without sacrificing performance.
Features
- High-Quality Compression: Achieves effective compression without compromising visual quality.
- Privacy-Focused: Keeps your images private by handling compression locally, with no third-party dependencies that access your files.
- Easy Setup: With just Node.js and Next.js, install dependencies and get started in minutes.
Getting Started
- Clone this repository.
- Run npm install to set up dependencies.
- Execute the app, and you have a reliable compression tool that keeps your images safe and fully under your control.
This is the backend, you also need to setup and run the Frontend from the below repo Local Image Compression Tool Frontend Repo
- Compresses an image to the desired file size.
- Supports
jpeg
,jpg
,png
, andwebp
formats. - Requires a multipart form-data with the file and an optional size parameter.
- Compresses a PDF file to the lowest possible size while maintaining good quality.
- Can optionally convert the PDF to grayscale.
- Requires a multipart form-data with the file and an optional grayscale parameter.
- Default maximum file size for images: 100 MB
- Default maximum file size for PDFs: 200 MB
- Clone the repository.
- Run
npm install
to install dependencies. - Run
node app.js
to start the server.
Send a POST request to the respective endpoint with the required file and parameters.