DFreds/dfreds-convenient-effects

Add fixed dimensions to SVG to avoid errors

morepurplemorebetter opened this issue · 0 comments

Describe the bug
SVGs need a width and height attribute to error "The SVG image must have width and height defined (in pixels), canvas API needs them.".

Discord message in the Foundry VTT discord server for reference: https://discord.com/channels/170995199584108546/722566083499786352/1144006493419610253

The ones added in the latest version have a style attribute, but that is not enough for SVGs.

Please replace

style="height: 512px; width: 512px;"

with

width="512" height="512"

for:
brick-wall.svg
broken-wall.svg
castle.svg