[HN Gopher] Show HN: AI Generated (Not-Real) User Avatar Images ...
       ___________________________________________________________________
        
       Show HN: AI Generated (Not-Real) User Avatar Images for Development
       Needs
        
       Hello,  There are many services that return fake avatar images, but
       it can be hard to get consistent names and faces.  In this service
       ChatGPT was used to generate a list of users with various
       characteristics and Dall-E to generate their avatars, based on
       those.  You can get a random avatar image like so:
       https://avatars.tzador.com/face  Or request a specific size, like
       so: https://avatars.tzador.com/face?size=250  You can ask for
       specific gender, like so:
       https://avatars.tzador.com/face?gender=female  Also you can pin
       point with id param to get back always the same image:
       https://avatars.tzador.com/face?gender=female&id=0987654321  If you
       need a list of fake users with their names, usernames and avatars,
       you can get it in JSON here. https://avatars.tzador.com/faces  Hope
       it helps someone, runs on CloudFlare, so should be fast, built
       using SvelteKit.
        
       Author : timz
       Score  : 66 points
       Date   : 2024-02-17 10:20 UTC (12 hours ago)
        
 (HTM) web link (avatars.tzador.com)
 (TXT) w3m dump (avatars.tzador.com)
        
       | snet0 wrote:
       | Minor spelling issue:
       | 
       | > You can mix and match the above paramers as needed.
       | 
       | Should be "parameters", of course.
       | 
       | I'm literally building a tiny webapp for myself and a few others,
       | this'll come in handy!
       | 
       | Just out of interest, would you consider describing the prompt(s)
       | you used for this? I've barely dabbled in ChatGPT for anything
       | like this. Did you use one of those wrapper-like services to
       | ensure the data-out was of the appropriate format?
        
         | timz wrote:
         | Sure, here is gist for generating the data and the images:
         | https://gist.github.com/tzador/ec9c14dd20f0ba1be243727b4f9ae...
         | Some manual filtering was required of the generated images,
         | since some where looking like mutants.
        
           | snet0 wrote:
           | Thanks, that's really helpful!
        
           | ShamelessC wrote:
           | Incredibly useful thanks!
        
         | timz wrote:
         | Thanks for the spelling tip.
        
         | BaudouinVH wrote:
         | what is the syntax to mix and match. Say I want hispanic, male
         | and 26-35 age range ?
        
           | almostnormal wrote:
           | It seems to accept multiple GET parameters, e.g.,
           | 
           | https://avatars.tzador.com/face?age=26-35&ethnicity=hispanic.
           | ..
        
       | Gare wrote:
       | I cannot quite put it into words, but something looks eerily
       | uncanny about them.
        
         | replwoacause wrote:
         | I think it is the symmetry of the faces for one
        
         | JKCalhoun wrote:
         | They all have long necks, are looking straight on, are
         | perfectly vertical....
        
         | schleck8 wrote:
         | The human brain is much better at picking up inconsistencies
         | for faces because that's where you look so often. It's the most
         | difficulg aspect to the uncanney valley.
        
       | tylerrobinson wrote:
       | It would be refreshing to see a version of this where the avatars
       | actually look like plausible users and not models/dolls/uncanny
       | robots. Backgrounds, less attractive faces, and different poses
       | would help. Most of the time avatars come from candid snapshots.
        
         | Brajeshwar wrote:
         | Missed this comment. Yes, there was a service where you can
         | either use the API or link to a random avatar of real people. I
         | have forgotten the name but I can look around and it should be
         | there.
         | 
         | I would download/test an App and I would be looking at my
         | Avatar/Picture with someone else's name.
        
         | mpetrovich wrote:
         | Perhaps something powered by thispersondoesnotexist.com would
         | better for that. That site returns completely AI-generated
         | faces that seem much more realistic and candid.
        
           | timz wrote:
           | thispersondoesnotexist.com is great, but doesn't provide
           | metadata, and one of the primary goals was to be able to have
           | consistent names with images, so boys don't get girls names.
           | Also multiple sizes and fixed ids where needed.
        
             | mpetrovich wrote:
             | Good point. What if we combined the best of both: more
             | realistic images from tpdne.com and API-accessible metadata
             | from your site?
             | 
             | Seems like a matter of crawling the former to get all the
             | images and then tagging them and serving them via your API.
             | 
             | Anyway, I think your approach is great and only wanted to
             | propose a possible approach to the original feedback above
             | :)
        
               | timz wrote:
               | Not sure tpdne would allow to use their images
        
         | m3kw9 wrote:
         | The lighting, esp color temperature, backgrounds, angles and
         | zoom amount all very uniform and Center, it looks like a game
         | avatar. If you look at fb profiles you will know
        
       | sailorganymede wrote:
       | Honestly, when it comes Avatars for my development needs, I just
       | use Emojis. It's just really easy to set up compared to getting
       | anything more complicated.
        
         | timz wrote:
         | I love emojis too. Check out my other project,
         | https://emojifavicon.dev/, to use emojis as favicons
        
           | cal85 wrote:
           | Did you know you can also use a data-URI as a favicon? And if
           | you use a <text> element inside that SVG, you can set any
           | text as a favicon - including an emoji.
           | 
           | For example, this sets the favicon to a little picture of the
           | text "!!!":                   <link         rel="icon"
           | href='data:image/svg+xml,<svg
           | xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100
           | 100"><text y=".9em" font-size="90">!!!</text></svg>'
           | />
           | 
           | You can also replace the "!!!" in the above snippet with any
           | emoji, and it works. (I couldn't do an emoji here because HN
           | filters them out.)
           | 
           | You could maybe add this as an option for copying code from
           | your site, and the result will work without any request to
           | any server (with the caveat that the emoji design will vary
           | depending on OS).
        
             | timz wrote:
             | That is a cool trick, i should add an option to copy that
             | code as well.
        
           | yreg wrote:
           | What is the license of the GitHub emoji assets?
        
       | Brajeshwar wrote:
       | Once upon a time there was a service for avatars and people used
       | to contribute their real avatars (pictures of faces). I
       | contributed mine and it used to pop up at random apps, websites,
       | and such.
        
         | ivanbozic wrote:
         | Wasn't that UIFaces? They're now also some sort of AI-generated
         | faces product, but I remember I also submitted mine there and
         | it was great seeing it pop up here and there.
        
           | Brajeshwar wrote:
           | www.uifaces.co pops up at the top of the search but this is
           | not. WebArchive says it started around 2018 and the domain
           | was registered in 2017.
           | 
           | I remember the services (faces, or avatar, something) but it
           | was since the early 2010s.
        
         | dpkirchner wrote:
         | I think you're talking about Gravatar: https://gravatar.com/
        
           | Brajeshwar wrote:
           | Nope. Gravatar by WordPress/Automattic associates your email
           | ID with your avatar.
           | 
           | The one I meant is a service, where you can use something
           | similar to the service in this post thread but with real
           | avatars contributed by people on the Internet.
        
       | wouldbecouldbe wrote:
       | Would default to a bit warmer styles. Looks very much like a
       | modern art portrait style where no one is allowed to smile
        
         | timz wrote:
         | This can be extended to infinity, with many styles, shapes and
         | forms. What about Disney looking like avatars
         | https://i.ibb.co/zbk8DnN/3c31a768-d244-47d9-b5ba-0f902e097f8...
        
           | wouldbecouldbe wrote:
           | Still very stylistic and brownish colours; but look at main
           | sentiment here the landing page doesn't feel like a warm set
           | of humans inviting you
        
             | timz wrote:
             | Thanks for the feedback, will tweak the prompts.
        
       | hasbot wrote:
       | The age parameter should accept more granularity for 50+. There
       | is a huge difference between 50-59, 60-69, 70-79, and 80+.
        
       | romanhn wrote:
       | This is neat, but it bugs me that it generates email addresses
       | with real providers (Gmail, Outlook, etc). This can lead to
       | accidental emails to real people during testing. I would
       | recommend using @example.com for all emails.
        
         | lcnPylGDnU4H9OF wrote:
         | Not to take away from the point but it's also a good practice
         | to catch outbound emails in dev/test and send them to the same
         | (developer-controlled) inbox. Definitely also use fake test
         | data, though; avoidance of this sort of mistake is best handled
         | with a bit of redundancy.
        
         | timz wrote:
         | Good point, thanks
        
       | pimlottc wrote:
       | When are real user-generated avatars ever consistent? What kind
       | of artificial visual goal are you chasing with this? Or is it
       | just to make your pitch deck look pretty?
       | 
       | This feels like another small step toward making the tech world a
       | more visually bland and uniform space [0].
       | 
       | 0: https://www.theverge.com/2016/8/3/12325104/airbnb-
       | aesthetic-...
        
       | mberning wrote:
       | Where are all the fat and ugly people.
        
         | WesolyKubeczek wrote:
         | You should probably go outside to meet them ;-)
         | 
         | But yeah otherwise
         | 
         | When developing things you also want badly take photos, photos
         | with poor lighting, photos with ugly colors.
         | 
         | No one carefully crafts their contact lists as on those apple
         | presentations...
        
           | mberning wrote:
           | I was thinking of testing healthcare software. Very few 50+
           | GQ models in the system.
        
       | xdennis wrote:
       | If you use this and refresh they all look the same.
       | https://avatars.tzador.com/face?gender=male&ethnicity=white&...
        
       | WesolyKubeczek wrote:
       | The images are all overly handsome faces. Can it be dialed to
       | more ugly and less symmetric mugs, like those you are actually
       | likely to see in real life?
        
       ___________________________________________________________________
       (page generated 2024-02-17 23:01 UTC)