hubs icon indicating copy to clipboard operation
hubs copied to clipboard

Support for SVG Assets Cross-Browser/platforms

Open yajo opened this issue 5 years ago • 7 comments

Description SVG images appear broken in the hub.

To Reproduce Steps to reproduce the behavior:

  1. Enter a hub.
  2. Drag & drop any svg.
  3. You see something simmilar to missingno.

Expected behavior Svg appears in the room.

Screenshots imagen

Hardware

  • Device: desktop
  • OS: Linux
  • Browser Firefox

┆Issue is synchronized with this Jira Task

yajo avatar Nov 20 '20 12:11 yajo

SVG files are rendered correctly on my Windows Firefox. So there might be a chance that it's Linux Firefox specific problem?

I don't have Linux platform. @Yajo or anyone else, would you please to test again if the problem is still reproducible?

takahirox avatar Sep 29 '21 19:09 takahirox

Still happens:

imagen

yajo avatar Sep 30 '21 06:09 yajo

Thanks for testing! Do you mind if sharing the console errors with us to check if the problem looks like the same as #4690?

takahirox avatar Sep 30 '21 20:09 takahirox

Thanks for sharing the log.

Error adding media Error: Error resolving url "file:///tmp/chemical.svg": Internal Server Error

This line is very suspicious... Wondering why attempting to load the local file. Anyways, I understand that likely this issue looks different from #4690, thanks!

takahirox avatar Oct 04 '21 18:10 takahirox

I dragged it from that location.

El lun., 4 oct. 2021 19:08, Takahiro @.***> escribió:

Thanks for sharing the log.

Error adding media Error: Error resolving url "file:///tmp/chemical.svg": Internal Server Error

This line is very suspicious... Wondering why attempting to load the local file. Anyways, I understand that likely this issue looks different from #4690 https://github.com/mozilla/hubs/issues/4690, thanks!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mozilla/hubs/issues/3402#issuecomment-933727996, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHNXDKOKWQ2TPYQRY6YUULUFHURLANCNFSM4T4WMQKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

yajo avatar Oct 06 '21 15:10 yajo

I can confirm svg loading is working on firefox but not on Chrome with this: Duck Type=Duck-Base (1)

Firefox on macOS

https://user-images.githubusercontent.com/4493657/184979926-a8b63bd9-9869-4bd2-80d3-93a33f816ae1.mp4

I see this error when trying to load svg in Chrome image

matthewbcool avatar Aug 16 '22 20:08 matthewbcool