CairoSVG icon indicating copy to clipboard operation
CairoSVG copied to clipboard

`url` keyword parameter does not accept `pathlib.Path` objects

Open 9x14S opened this issue 1 year ago • 2 comments

Is this on purpose? Seems a bit weird that it only accepts str and bytes as valid url values

9x14S avatar Oct 20 '24 14:10 9x14S

Hi!

It’s not on purpose. That’s just because the API was defined when pathlib didn’t exist yet. 😄

liZe avatar Oct 25 '24 09:10 liZe

I'd like this too. I was using this in a notebook on databricks and the file system does not work with this. Passing in a bytes object of the image would avoid having to move files around various filesystems to make this work.

marcmaxson avatar Mar 05 '25 22:03 marcmaxson