When I used the library at first time, I got a blank image. But after override the temp_path parameter of Html2Image, it worked perfectly to me.
Then, at a first momment, trying to fix it, I replaced manual creation of the temporary folders, with ready-to-use, Python's tempfile.TemporaryFolder interface. But this didn't have fixed the problem. The blank image was still there.
About the snap validation
I am using Chrome from snap. After I found the code validating the snap installation, and came to do some tests, using the absolute path declared in the code, the generation of the image got worked fine.
Conclusion
Now, using the combination of the tempfile module and validating the snap installation first, the most of problems with blank images must be solved.
I made two things here:
tempfile.TemporaryFolder
.snap
before of native check.I did this two comments, recently:
About the permissions
When I used the library at first time, I got a blank image. But after override the
temp_path
parameter ofHtml2Image
, it worked perfectly to me.Then, at a first momment, trying to fix it, I replaced manual creation of the temporary folders, with ready-to-use, Python's
tempfile.TemporaryFolder
interface. But this didn't have fixed the problem. The blank image was still there.About the snap validation
I am using Chrome from snap. After I found the code validating the snap installation, and came to do some tests, using the absolute path declared in the code, the generation of the image got worked fine.
Conclusion
Now, using the combination of the
tempfile
module and validating thesnap
installation first, the most of problems with blank images must be solved.