Canvas can be kind of a pain to work with sometimes. There's lots of repetitive code to get a working canvas instance, load an image into that instance, handle async image loads correctly etc. This can lead to quite a lot of boilerplate code for something relatively simple like merging some images together. `merge-images` abstracts away all the repetitive tasks into one simple function call.
Canvas can be kind of a pain to work with sometimes, especially if you just need a canvas context to do something relatively simple like merge some images together. `merge-images` abstracts away all the repetitive tasks into one simple function call.
Images can be overlaid on top of each other and repositioned. The function returns a Promise which resolves to a base64 data URI. Works both in the browser and in Node.js.
Images can be overlaid on top of each other and repositioned. The function returns a Promise which resolves to a base64 data URI. Supports both the browser and Node.js.