DFreds / dfreds-convenient-effects

A FoundryVTT module that adds easy to use toggleable active effects for any system.
MIT License
44 stars 37 forks source link

Add fixed dimensions to SVG to avoid errors #297

Closed morepurplemorebetter closed 8 months ago

morepurplemorebetter commented 11 months ago

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