SmaugPool / pool.pm

Cardano blockchain realtime visualization
https://pool.pm
Other
17 stars 8 forks source link

SVG Rendering Changed #54

Open frogdesk opened 1 year ago

frogdesk commented 1 year ago

Hello, Previously, SVG based thumbnails were rendered on the front-end, which in most browsers resulted in using the current SVG standard.

However it appears that the new thumbnail rendering method uses an older SVG standard which does not support the transform-origin property.

I was hoping this might be fixable.

Thanks

SmaugPool commented 1 year ago

Hi,

Yes, I'm testing the SVG rasterizer which is needed for other purpose (links previews for example). The plan is to go back to render SVGs natively again in thumbnails once I have identified most issues.

Could you please tell which asset(s) thumbnail is not correctly rendered?

Thank you

frogdesk commented 1 year ago

Glad to hear it :)

Here are a bunch that are not rendering correctly because of transform-origin: https://pool.pm/$wizardcrypt/%40270a4b2c

And here's one that renders correctly, since I replaced the transform-origin in the later mints to minimize this issue: https://pool.pm/$telfire/Wizard%20Spell%2001759

SmaugPool commented 11 months ago

@frogdesk SVGs are rendered natively again except in link previews. So those should now work everywhere except in like previews.

Keeping the issue open until link previews render them correctly too.