![]() ![]() ExamplesĮxample of synchronously creating a rectangular image with a bright green background and in magenta the text "Hello world!" This means that you should either change all gd.create calls to gd.createSync and gd.createTrueColor to gd.createTrueColorSync or rewrite those call and wrap further calls in a callback. Since gd.create and gd.createTrueColor are async. APIįull API documentation and more examples can be found in the docs directory or at the dedicated github page. gd.create() will create a palette-based base image while gd.createTrueColor() will create a true color image. GIFs are always palette-based, PNGs can be both palette-based or true color. There are different flavours of images, of which the main ones are palette-based (up to 256 colors) and true color images (millions of colors). $ npm install node-gd Will not build on Windows! ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |