SwitchbladeBot / invidget

SVG invite widgets that look just like the ones on the Discord client!
http://invidget.switchblade.xyz/
MIT License
116 stars 23 forks source link

Handle invisible portions of icons better #23

Open Phoenix616 opened 3 years ago

Phoenix616 commented 3 years ago

Currently invisible portions of server icons get some strange outline around them when the normal invite widget just displays the normal background.

Invidget: Invidget

Discord widget: Discord

Doges commented 3 years ago

Can reproduce, i'm gonna take a look.

pedrofracassi commented 3 years ago

It being a squircle instead of a full circle is intentional, as that's how Discord displays invites afaik. Is the issue about the black background on the transparent parts?

Phoenix616 commented 3 years ago

It being a squircle instead of a full circle is intentional, as that's how Discord displays invites afaik. Is the issue about the black background on the transparent parts?

It's about the gray background and the border, should be pretty obvious from comparing the two images what I mean? 🤔

pedrofracassi commented 3 years ago

Can you send me the server icon from that widget you're rendering?

I see that a transparent portion of the icon is black, that should be easy to fix, but I'm not sure about these edges you pointed out.