twres

1.2.1 • Public • Published

twres

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

Installation

  1. have nodejs installed (tested with version in file /.node-version)

From NPM

$ npm i -g twres
...
$ twres --version
1.2.0

Manual

  1. clone this repository
  2. navigate to the directory
  3. install dependencies
    $ npm i
  4. create link, so it can be run as twres from anywhere
    $ npm link
  5. profit
    $ twres --version
    1.2.0

License

GPLv3

Package Sidebar

Install

npm i twres

Weekly Downloads

1

Version

1.2.1

License

GPLv3

Unpacked Size

411 kB

Total Files

5

Last publish

Collaborators

  • monnef