Converts an image for use on Twitter (resize to 16:9 and add blurry background).
$ twres -h
Usage:
twres -i input.png -o output.png
twres img.png # output will be saved to img_twres.png
Options:
-i, --input Input file [string]
-o, --output Output file [string]
-b, --blur Blur intensity [number] [default: 5]
-q, --quality Quality of output JPEG (0-100) [number] [default: 90]
-v, --verbose Print debug logs [boolean]
-h, --help Show help [boolean]
--version Show version number [boolean]
twres v1.2.0 | monnef (c) 2022 under GPLv3
- have nodejs installed (tested with version in file
/.node-version
)
$ npm i -g twres
...
$ twres --version
1.2.0
- clone this repository
- navigate to the directory
- install dependencies
$ npm i
- create link, so it can be run as
twres
from anywhere$ npm link
- profit
$ twres --version 1.2.0
GPLv3