var canvas = document.createElement('canvas'); canvas.width =1 canvas.height =1 canvas.toDataURL('image/png')