Project to create a tool able to convert and compress images in the browser !
To build this project on linux, you will need a package called "libncurses5".
sudo apt install libncurses5
sudo pacman -S ncurses
sudo ln -s /usr/lib/libtinfo.so.6 /usr/lib/libtinfo.so.5
git clone https://github.com/rambip/jpeg-compress
cd jpeg-compress
npm install
npm run build
Then, you will have a website ready to deploy inside jpeg-compress/build
!
If you want to test it in your browser, just run:
npm run serve
It will start a local server
You can use this tool to select multiple images from your local computer, set a quality for all of them, and convert them all at once !
The result will be stored in a jpeg-result.zip
They are really good tool out there, like squoosh.
Personnally, I tried to do everything from scratch with the webassembly, I used the c stb headers for image manipulation.