all AI news
Unique and Random Pixel Profile Picture for Anonymous User
July 12, 2023, 11:01 a.m. | Rizmy Abdulla
DEV Community dev.to
Live Preview
Live preview available on : https://rizmyabdulla.github.io/Anonymous-dp/
Anonymous-dp Intergration via CDN
import javascript code via : https://cdn.jsdelivr.net/gh/RizmyAbdulla/Anonymous-dp@main/index.js
<script src="https://cdn.jsdelivr.net/gh/RizmyAbdulla/Anonymous-dp@main/index.js"></script>
Using Anonymous-dp in HTML webpage
create canvas
element with id profile-picture
with width
200 and height
200
<canvas id="profile-picture" width="200" height="200"></canvas>
you can save profile image by a creating a button
Element with id save-dp
<button id="download-dp">Download dp</button>
if you want to generate DP with a button Element,use id generate-dp
.
<button id="generate-dp">Generate dp</button>
if you want to submit this …
anonymous canvas cdn download html image javascript opensource pixel productivity profile random save
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne
Senior Machine Learning Engineer (MLOps)
@ Promaton | Remote, Europe
Data Analyst (Digital Business Analyst)
@ Activate Interactive Pte Ltd | Singapore, Central Singapore, Singapore