For the best compression options for JPG, PNG and GIF, those files will be uploaded to our server. You might want to turn that feature off for reduced bandwidth usage, which will disable GIF and lossy PNG compression and will make compressed JPG images slightly larger.
wget, and (for the server-side conversions) the applications
$ sudo apt-get install pngquant imagemagick gifsicle -y $ git clone https://github.com/moqmar/duri.git $ cd duri && make
You can start the server using a simple
node . (or
npm start). You may use the following environment variables to change the server's behaviour:
||Hostname to bind to.|
||Port to bind to.|
||The log level.