wordwrapimagewriter
ES6 JS class to write text onto image with word wrapping
Installation
npm install wordwrapimagewriter --save
Usage
Write lines onto an image wrapping and automatically determining
spacing and padding as specified
// Instantiate the writervar writer = imgFilename: './imageToWriteOnto.png' availableLines: 3 // your maximum line number you allow topPadPx: 50 // spacing from top of image to move down before writing lineBottomPadPx: 5 // spacing at bottom of each line fontFile: './HelveticaBold.ttf'; // Call open to asynchronously load image before writingwriter;