Automattic / node-canvas

Node canvas is a Cairo backed Canvas implementation for NodeJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make img.src= async, add non-standard img.load() synchronous API

zbjornson opened this issue · comments

See discussion in #1003 (comment) and the next comment.

img.src= should be async to follow browser behavior. We can keep a non-standard synchronous API for flexibility though, something like img.src(buffer|string).