This format can either be used for creating grayscale images (treating each byte as an alpha value), or for creating indexed PNGs (treating each byte as a palette index) (see the example using alpha values with fillStyle and the example using imageData). This format can be faster than RGBA32 because transparency does not need to be calculated. If you have xcode 10.0 or higher installed, in order to build from source you need NPM 6.4.1 or higher. Read more about the problem on Stack Overflow. 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. Pkgin install cairo pango pkg-config xproto renderproto kbproto xextproto Sudo yum install gcc-c++ cairo-devel pango-devel libjpeg-turbo-devel giflib-devel Sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev OSīrew install pkg-config cairo pango libpng jpeg giflib librsvg pixman Note that libgif/giflib, librsvg and libjpeg are optional and only required if you need GIF, SVG and JPEG support, respectively. One-line installation instructions for common OSes are below. This requires several dependencies, including Cairo and Pango.įor detailed installation information, see the wiki. 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. The minimum version of Node.js required is 6.0.0. If you want to build from source, use npm install -build-from-source and see the Compiling section below. By default, binaries for macOS, Linux and Windows will be downloaded.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |