svg-exportJS icon indicating copy to clipboard operation
svg-exportJS copied to clipboard

Download PNG and JPEG returns blank image

Open darahsten opened this issue 1 year ago • 1 comments

Downloading png or jpeg results in a blank page. SVG, PDF, and PNG (SVG string) works fine. These were all previously working until I guess some browser update crashed things.

I tested this on Firefox, Brave and Chromium browsers, all same result. For reference, I use Firefox 126.0.1 on Ubuntu.

The example page also exhibits the same behavior as my local examples. The index.html of the repo can be used for testing.

Below is the obviously blank export.

Circles and rectangles chart.

Does anyone have a suggestion or fix ?

darahsten avatar Jun 12 '24 12:06 darahsten

By using the raw source code, I can see that if we remove computed styles, the png renders okay, although without any images. There is some styles which the browser/canvg is not happy with. I am still trying to figure it out.

darahsten avatar Jun 12 '24 20:06 darahsten

Thank you for reporting. This issue was fixed in version 2.0.0 that was just released.

sharonchoong avatar Oct 23 '25 16:10 sharonchoong