Closed 12rambau closed 3 months ago
In case you are still curious, or anyone else wonders this, you can look at the source code:
https://github.com/shibukawa/imagesize_py/blob/8d88ec6b646d6184b5633604551d6fc154783073/imagesize/imagesize.py#L204-L215
Since your svg doesn't have width
or height
, there are no regex matches.
Thanks for your answer, I thought it was computed from the value but since the value is extracted from the xml it make complete sense that it doesn't work. Sorry for the noise.
I try to get the size of a .svg file. This file is displayed just fine on my computer but raise an error in this lib. do you have any idea why ?
To reproduce:
The full error traceback