Skip to content

Commit 53ca5e9

Browse files
committed
Fixed #463, omit background only for png types.
1 parent c2bbb53 commit 53ca5e9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/export.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,9 @@ const createImage = async (page, type, encoding, clip) =>
6161
encoding,
6262
clip,
6363

64-
// #447 - always render on a transparent page
65-
// this will not affect users who do not explicitly set
66-
// chart.backgroundColor to a color with opacity lower than 1
67-
omitBackground: true
64+
// #447, #463 - always render on a transparent page if
65+
// the expected type format is PNG
66+
omitBackground: type == 'png'
6867
}),
6968
new Promise((resolve, reject) =>
7069
setTimeout(() => reject(new Error('Rasterization timeout')), 1500)

0 commit comments

Comments
 (0)