tinypng-upload
tinypng-upload copied to clipboard
📦 Tinypng desktop application, upload compress image to server simply
trafficstars
tinypng upload


Size comparison before and after compression
Usage
1. Download
First, clone this project and run locally:
git clone
cd tinypng-upload
npm i
npm run build
After that, you will be able to find an executable program in the build folder. And then run it.
2. Configuring tinypng API key
tinypng-uploaduse tinypng API to compress image,So you need to register an API Key in tinypng.
Then add this API key to settings:
3. Configuring upload request
If you need to upload pictures to the server, you must configure these options.
| Property | Decription | Type | Default |
|---|---|---|---|
| action | Upload request URL, required. | String | - |
| headers | Upload request header. | Object | {} |
| data | Extra data with upload request. | Object | {} |
| name | The key in upload request targeting to the file. | String | file |
| with-credentials | Enable certification info in Cookie or not. | Boolean | false |