SWI-Prolog/swish

more performant and more appropriate avatars

Closed this issue · 6 comments

Current avatars are stylistically wrong, being more for a video game set in the middle ages.

They're generated by shelling out to imagemagick, which consumes resources and is complex.

Change to svg based av's

I have written a bit of javascript and an svg that makes lots of avatars by picking diff. mouth, eyes, head shape, etc. It just needs wired in.

I'm happy to have a look at how this should be integrated. Where is the code?

Anniepoo@55f8bfa

Most of the code is in svgavatar.js and avatar.svg

Basically, it just uses avatar.svg for all user avatars. It then sets the visibility of the various parts to customize the avatar. So, eg. all the mouths are visible if you just load up avatar.svg in an image viewer.

Great. I'll have a look later.

Ok. Copied the files over to the main repo and integrated them. By default the system now handles both the old and new avatars and only if it needs to create a new one it will use yours. Available in the repo, but not yet on the public swish. That will happen with the next update.