LasseRafn / ui-avatars

MIT License
1.05k stars 138 forks source link

Safari seems to be rendering SVGs all of a sudden #35

Closed mphalliday closed 5 years ago

mphalliday commented 5 years ago

Just starting noticing that when an avatar is displayed in Safari it renders as an SVG and doesn't respect the colour, or length options.

With the following code:

<img src="https://ui-avatars.com/api/?name=TestUser&size=40&length=1&background=bb65ca&color=fffff" />

We are seeing this rendered in Safari:

Screen Shot 2019-06-24 at 10 50 59 AM

In Chrome it looks fine:

image

Firefox also seems to be okay.

Any ideas? Has just seemed to be in the last few days or so.

LasseRafn commented 5 years ago

Hi! I apologize for this! I recently shipped SVG support, however missed the color option... I'm thinking maybe the length issue is cache-related. Can you try and flush you cache?

LasseRafn commented 5 years ago

I've fixed the color thing, however length I cannot reproduce

LasseRafn commented 5 years ago

Nevermind. I found the issue! Has been pushed live. Browser cache might prevent this from showing immediately

mphalliday commented 5 years ago

Awesome, thanks for the quick response! Working great now!