gimg
v0.0.7
Published
Generate images of a specific size.
Downloads
2
Readme
gimg
Generate images of a specific size.
Installation
Compiling
If you don't have a supported OS or processor architecture, or you use --build-from-source
, the module will be compiled on your system. Unless previously installed you'll need Cairo and Pango. For system-specific installation view the Wiki.
You can quickly install the dependencies by using the command for your OS:
OS | Command
----- | -----
OS X | Using Homebrew:brew install pkg-config cairo pango libpng jpeg giflib
Using MacPorts:port install pkgconfig cairo pango libpng jpeg giflib libsrvg
Ubuntu | sudo apt-get install libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev build-essential g++
Fedora | sudo yum install cairo cairo-devel cairomm-devel libjpeg-turbo-devel pango pango-devel pangomm pangomm-devel giflib-devel
Solaris | pkgin install cairo pango pkg-config xproto renderproto kbproto xextproto
OpenBSD | doas pkg_add cairo pango png jpeg giflib
Windows | Instructions on our wiki
Mac OS X v10.11+: If you have recently updated to Mac OS X v10.11+ and are experiencing trouble when compiling, run the following command: xcode-select --install
. Read more about the problem on Stack Overflow.
Install
npm install gimg -g
Usage
Usage: gimg [options] [command]
Options:
-V, --version output the version number
-h, --help output usage information
Commands:
create [options] <name> Generate image
help Print this help
Example
gimg create name -s 500x500 -t image -f jpg