kopia lustrzana https://github.com/inkstitch/inkstitch
handle SVGs without bounding box
rodzic
5953d54c14
commit
bdf98a7e91
|
@ -80,7 +80,10 @@ def convert_length(length):
|
|||
|
||||
@cache
|
||||
def get_viewbox(svg):
|
||||
return svg.get('viewBox').strip().replace(',', ' ').split()
|
||||
viewbox = svg.get('viewBox')
|
||||
if viewbox is None:
|
||||
viewbox = "0 0 0 0"
|
||||
return viewbox.strip().replace(',', ' ').split()
|
||||
|
||||
|
||||
@cache
|
||||
|
|
Ładowanie…
Reference in New Issue