1. Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!
    Dismiss Notice

GMC Profile Pic Collage

Discussion in 'Off Topic' started by RollyBug, Jan 10, 2020.

  1. RollyBug

    RollyBug Member

    Joined:
    Feb 23, 2018
    Posts:
    38
    I like playing around with large amounts of data. My current programming project is a tool that allows you to generate a mosaic with an input image and tiles. I needed a large sample of images to stress-test the tool and what came to mind were the profile pics of everyone here.

    At first I wasn't sure if downloading all of these images was even practically possible. But, sure enough, each user's profile image is easily accessible through a unique URL.

    Each image link has this structure:

    https://forum.yoyogames.com/data/avatars/l/[X]/[Y].jpg

    ...where Y is a forum user ID and X is the first two digits of that ID. My ID is 27145, so my link is:

    https://forum.yoyogames.com/data/avatars/l/27/27145.jpg

    So, to batch download *all* user's profile pics, I simply need to download each possible variation of this link. To make that easier on myself I used a Chrome extension called Simple Mass Downloader to do most of the heavy lifting. I could set a pattern URL like so:

    https://forum.yoyogames.com/data/avatars/l/0/[0:999].jpg

    ...and it would download 0.jpg through 999.jpg in that directory. Next, I had to do the same thing for all other directories, so I copied that a bunch and made this text file with the numbers adjusted a bit (Notepad++ is great for this sort of thing!). The last step was to copy and paste each line into the pattern URL field to build my download queue and finally start downloading!

    There are only about 15,000 registered users, and of those users only some have set their profile picture, so I was expecting no more than, say, 5,000 images. Since my downloading queue included *every single possible number combination* I got a bunch of "file not found" errors with proper images mixed in. In the end I received 4,190 images taking up 63.7 MB of space. That means about 30% of us have set a profile pic, which is interesting I guess.

    I made a collage with each image included which you can view below. Have fun trying to find yourself!
    [​IMG]

    Note that each image has been resized to 48x48 px, meaning that the few pics that were not squares were cut a bit.

    I don't know what you could do with this information, I just felt like sharing.
     
    Last edited: Jan 10, 2020
    Jabbers, Cantavanda, Nocturne and 4 others like this.
  2. Mercerenies

    Mercerenies Member

    Joined:
    Jun 21, 2016
    Posts:
    134
    Very nice. Reminds me of the first time we did something like this (on a much smaller scale albeit). Can't remember if it was very late YYGF or shortly after I hopped over to the GMC, but I do still have the first one. It was my desktop background for years.
    [​IMG]

    As for the big one, I see a lot of people I know (PKB, Electro, canta) but haven't spotted myself yet.
     
    Cantavanda and RollyBug like this.
  3. Misu

    Misu The forum's immigrant

    Joined:
    Jun 20, 2016
    Posts:
    680
    Where's Waldo?

    [​IMG]
     
    Cloaked Games and Cantavanda like this.
  4. Xor

    Xor @XorDev

    Joined:
    Jun 20, 2016
    Posts:
    82
    Neat idea! Interesting how it uses an older variant of my avatar:
    upload_2020-1-10_15-53-37.png
    I suppose this is because I switched to Gravatar. Perhaps there are even more with Gravatar that can't be easily counted.
     
  5. RollyBug

    RollyBug Member

    Joined:
    Feb 23, 2018
    Posts:
    38
    When did you change it? I pulled these images a week or two ago.

    Edit - I see what you mean now. That is interesting! I'd probably need to seriously change my approach if I were to include those as well.
     
    Xor likes this.
  6. Mercerenies

    Mercerenies Member

    Joined:
    Jun 21, 2016
    Posts:
    134
    I didn't even know Gravatar was still around. Haven't heard that name in years.
     
    Xor likes this.
  7. Cantavanda

    Cantavanda 〜Flower Prince〜

    Joined:
    Jun 23, 2016
    Posts:
    74
    This image gave me a huge nostalgia blast..... sobs
     
  8. Desert Dog

    Desert Dog Member

    Joined:
    Jul 30, 2019
    Posts:
    71
    Very cool!
     
  9. Cloaked Games

    Cloaked Games Member

    Joined:
    Jul 4, 2016
    Posts:
    835
    Heh, cool. I found myself! :p
     
  10. BattleRifle BR55

    BattleRifle BR55 Member

    Joined:
    Jun 24, 2016
    Posts:
    1,072
    I was looking forward to a hunt, but my picture was the fifth one. :p
     
  11. Bearman_18

    Bearman_18 Member

    Joined:
    Jan 24, 2018
    Posts:
    220
    Found it! 22nd column, 15th row. Amazing picture by the way. I could amuse myself forever finding everyone I recognize.
     
  12. Misu

    Misu The forum's immigrant

    Joined:
    Jun 20, 2016
    Posts:
    680
    You guys still havent found Waldo yet...
     
  13. RollyBug

    RollyBug Member

    Joined:
    Feb 23, 2018
    Posts:
    38
    I suspect that the first people to register (regulars) received low ID values and are all at the top - It seemed that way scrubbing through the folder of images. I was a bit slow to register so I'm more towards the middle.
     
  14. Nocturne

    Nocturne Friendly Tyrant Forum Staff Admin

    Joined:
    Apr 13, 2016
    Posts:
    7,138
    I don't think so... I have ID 6 and I'm way over and down on the right bottom corner...

    Nicely down, btw!!!
     
  15. RollyBug

    RollyBug Member

    Joined:
    Feb 23, 2018
    Posts:
    38
    Interesting. So while my folder of images is sorted by ID the program I used to make the collage (my own code) seems to have no pattern at all. And thanks!
     
  16. SilentxxBunny

    SilentxxBunny Epsilon

    Joined:
    Jun 21, 2016
    Posts:
    146
    I have, but I'm still looking for SilentxxBunny.
     
  17. Jabbers

    Jabbers Member

    Joined:
    Jun 21, 2016
    Posts:
    213
    Aw yis. 56, 21.
     
  18. Rui Rosário

    Rui Rosário Member

    Joined:
    Oct 10, 2019
    Posts:
    50
    Thanks to the avatar made by my Secret Santa it was rather easy to spot myself (a bit off from the top right corner). But nice collage @RollyBug !!
     
  19. Cantavanda

    Cantavanda 〜Flower Prince〜

    Joined:
    Jun 23, 2016
    Posts:
    74
    We're neighbours!
     
  20. TehPilot

    TehPilot Member

    Joined:
    Jun 20, 2016
    Posts:
    86
    Twelve rows down, four columns from the right. Nice.
     
  21. Bluetail7

    Bluetail7 Member

    Joined:
    Jun 20, 2016
    Posts:
    160
    When you easily find friends and people you know, but yourself.
    xD
     
  22. BenRK

    BenRK Member

    Joined:
    Jun 21, 2016
    Posts:
    6
    Neat. Took forever for my 30 year old brain to process this, but I found my dumb avatar I made when I was 16 or something. I haven't changed that thing in literal decades now.
     
  23. Simon Gust

    Simon Gust Member

    Joined:
    Nov 15, 2016
    Posts:
    3,258
    Ha I cheated it! I copied the Collage to paint.NET, copied my own and inserted it and selected a Color in my pfp to see where on the board it would light up. And I found it in 10 seconds.
     
  24. RollyBug

    RollyBug Member

    Joined:
    Feb 23, 2018
    Posts:
    38
    Clever girl
     
    Simon Gust likes this.
  25. zendraw

    zendraw Member

    Joined:
    Jun 20, 2016
    Posts:
    1,385
    cant find myself, but sal duplicates
     

Share This Page