vercel / avatar Goto Github PK
View Code? Open in Web Editor NEW๐ Beautiful avatars as a microservice
Home Page: https://avatar.vercel.sh
License: MIT License
๐ Beautiful avatars as a microservice
Home Page: https://avatar.vercel.sh
License: MIT License
Apparently you need to specify a Node version in the package.json
to enable heroku deploys:
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- Node version not specified in package.json
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
Love,
Heroku
๐ thanks for this service, it gave me the idea to write a bit of Rust so I have a fresh gradient as my avatar every day.
https://avatar.tobi.sh/tobiaslins.svg?text=TL would generate an avatar with the initials "TL" in white letters on top of the gradient. The new Docs even describe this behavior, but it is simply missing completely.
size=300 returns a 300x300 image while size=300x300 returns a 120x120px image.
It would be nice to set width as well as the height.
Hello everyone!
Is it possible to get an avatar with the first letters of the name also with the image in png format ? Currently it's possibile to do that only with svg file:
When both size
and type
arguments are given, the format is correct (SVG), but the size of the SVG is not changed by the "500" which is being passed in.
Change https://github.com/tobiaslins/avatar/blob/master/src/svg.js#L3 so that width="120" height="120"
is changed to width="[size]" height="[size]"
I think you should add a Heroku Easy Setup Button for easy installation.
What do you think @tobiaslins ?
I'd like to use this in node so If possible can you please export the functions :
generateSVG
generatePNG
and publish the package to npm? it'd be super helpful. :)
I am using CUIDs for my app, and wanted to use vercel/avatar
to generate avatars for my users based on those CUIDs, to avoid storing images. I implemented this but then noticed that it seemed to often give one specific gradient (red/green), rather then a variety of different ones. Unfortunately, the gradient that it gives is pretty ugly.
The CUIDs to generate this image can be found here: https://gist.github.com/cursecodes/4b48449a5b7a526615f51e57e6cd6013
I am assuming this has something to do with djb2, but I have no clue.
Gmail does not seem to support these avatars / svg images. Are there any solutions or workarounds for this?
It seems that since #45 image generation has ceased to work. Even the homepage does not look to be working correctly.
maybe it makes sense to add an upper limit and cut at that
so
if(size>upperLimit) size=upperLimit;
the third avatar image not being displayed on the webpage .
To recreate :
visit https://avatar.vercel.sh/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.