7

Pikaso now supports NodeJs

 2 years ago
source link: https://dev.to/raminmousavi/pikaso-now-supports-nodejs-3p9k
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Cover image for Pikaso now supports NodeJs
Ramin

Posted on Jun 12

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
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()

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

Website:
https://pikaso.app


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK