Ability to link directly to a generated SVG/PNG
See original GitHub issueThe ability to download a generated SVG or PNG is great, but I’d love to be able to link directly to the SVG or PNG file.
Use case here is generating random avatars for user profiles on a web app.
Basically want to use this app as an API server for generating these and then link to randomly generated images.
example.com/?accessoriesType=Prescription01&avatarStyle=Transparent&clotheColor=Blue01&clotheType=BlazerShirt&eyeType=Hearts&eyebrowType=SadConcerned&facialHairColor=Black&facialHairType=BeardLight&graphicType=Resist&hairColor=Black&mouthType=Smile&skinColor=Light&topType=LongHairMiaWallace.svg
(Note the added .svg
on the end of the URL)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:10
Top Results From Across the Web
The Best Way to Embed SVG on HTML (2021) - Vecta.io
SVG images embedded with <img> tags are very easily maintained. Because they are encapsulated, they can contain IDs and classes that are ...
Read more >The Many Ways to Link Up Shapes and Images with HTML ...
The only trick here is to make sure the <a> tag is inside the SVG markup and that the tag wraps the shape...
Read more >Adding vector graphics to the web - Learn web development
For creating SVG images, most people use a vector graphics editor like Inkscape or Illustrator. These packages allow you to create a variety...
Read more >Convert SVG to PNG using your browser - myByways
My intention is to do the conversion purely within the browser - nothing is sent to any server, not the SVG nor the...
Read more >Accessibility Features of SVG - W3C
Scalable Vector Graphics ( SVG ) offers a number of features to make graphics on the Web more accessible than is currently possible,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For anyone else who wants this, you can use https://avataaars.io for it. Just use the query strings from getavataaars.com:
@nosovsh it seems pretty simple to run, so I expect it to be pretty safe to direct link to! I plan on just leaving it up forever (it runs on a $7 heroku instance, so I’m not worried)