Default icon background to transparent.

pull/68/head
Mikunj 7 years ago
parent c8db0e200d
commit 75bbf374f5

@ -49,6 +49,7 @@ const generateImage = pubKey => {
*/ */
const png = new Identicon(sha224(pubKey), { const png = new Identicon(sha224(pubKey), {
margin: 0.2, margin: 0.2,
background: [0,0,0,0],
}).toString(); }).toString();
fs.writeFileSync(imagePath, png, 'base64'); fs.writeFileSync(imagePath, png, 'base64');
return imagePath return imagePath

Loading…
Cancel
Save