Pikaso now supports NodeJs

raminmousavi

Ramin

Posted on June 12, 2022

Pikaso now supports NodeJs

As of version 2.7.0, NodeJs is supported.
This will enable collaboration between backend and frontend sides in creating images.

Using Pikaso in a NodeJs environment is similar to using it in a browser.

Note that you must install node-canvas separately.

npm install canvas
Enter fullscreen mode Exit fullscreen mode
const { Pikaso } = require('pikaso')

const editor = new Pikaso({
  width: 800,
  height: 600
})

editor.shapes.circle.insert({
  x: 200,
  y: 200,
  radius: 40,
  fill: 'blue'
})

const base64Url = editor.export.toImage()
Enter fullscreen mode Exit fullscreen mode

Github:
https://github.com/pikasojs/pikaso

Website:
https://pikaso.app

💖 💪 🙅 🚩
raminmousavi
Ramin

Posted on June 12, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Pikaso now supports NodeJs
pikaso Pikaso now supports NodeJs

June 12, 2022