Closed wgundamj44 closed 7 months ago
Thanks! Could you also please add a test case?
I think that part of the code is already covered by test_samples.TestOtherFiles.test_png_in_svg
. @deeplook, did you have another test in mind?
@claudep True, that should do it! Fine then with me.
Described in https://github.com/deeplook/svglib/issues/393
The current implementation creates a temporary file and pass its path all the way down to reportlab for render. It's hard to find a place to unlink the temporary file because it might be outside of svglib's reach when reportlab is done with the file.
This PR tries to pass PIL Image to reportlab, since reportlab seems to support both file path and Image.