Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/ImageUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class ImageUtils {
//var binaryData = new Buffer(base64Data, "base64").toString("binary");
//return binaryData;
var pngNative = nativeImage.createFromDataURL(pngUri);
return pngNative.toPng();
return pngNative.toPng ? pngNative.toPng() : pngNative.toPNG();
}

static svg2png(svgPath) {
Expand Down Expand Up @@ -75,4 +75,4 @@ class ImageUtils {
}
}

module.exports = ImageUtils;
module.exports = ImageUtils;