Google Drive anonymous animals – Collect them all!
Tags: googlecloud, png, javascript
Published: 2021-06-12 03:18:18

## Questions

I’ve always been interested in the animal icons that users are assigned when accessing a Google document anonymously, but only recently did I seriously start wondering:

**How many are there?**

**Are they available via some sort of API or image server?**

## Searching

So, I began searching the internet. See the end for some related pages I found and stuff I used for reference.

I figured since these animals have been around for years and since Google is one of the biggest names on the internet, that it should be pretty easy to answer these questions... 

## The image source

But no! Nobody seems to know for sure how many there are. There are many lists of varying lengths out there, and it’s difficult to create a definitive one, as it seems animals have been both deleted and created since their introduction.

After many hours of searching, I still not found anything published by Google itself that lists the anonymous animals, though admittedly I haven’t asked anyone that works there directly.

_However_, I did look into the source for the anonymous icon image that appears in a doc webpage, and found this:

```
https://ssl.gstatic.com/docs/common/profile/<animal-name>_lg.png
```

where `lg` (large) is the size of the image, though I’ve not checked whether other image sizes are available. So, all possible anonymous animal images are supposedly located at `ssl.gstatic.com/docs/common/profile/`, though I don’t know of an easy way to list all valid image files under that path.

_Well_ – I thought – _maybe I could just guess and check?_

## My own list

So, I compiled as complete a list of animal names as I could find and attempted to check if each existed, with code like so:

```javascript
function check_animal(animal) {
  return new Promise(function(resolve,reject) {
    let url = `https://ssl.gstatic.com/docs/common/profile/${animal}_lg.png`
    let img = new Image()
    img.onload = function() {
      // anonymous animal found!
      resolve(img)
    }
    img.onerror = function() {
      // anonymous animal not found
      reject()
    }
    img.src = url
  })
}
```

The results were promising, but comparing with other lists on the internet I saw that there were some I was missing, because some anonymous animals are actually fictional creatures (ex. unicorn, dragon, nyan cat, jackalope), have special names (ex. dumbo octopus, slow loris), or animals at all (ex. pumpkin)! In these cases, I just grabbed names that other people had shared previously and added them to my list.

## Showcase

Now, if you’d like to see what may be the most complete list of Google Anonymous Animals on the internet, check mine out at **[anonymousanimals.herokuapp.com](https://anonymousanimals.herokuapp.com)**!

![anonymous_animals_preview_col](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7mohjwoyrajkznpid0g.png) 

## Notes

So far, any time an animal has a space in its name (ex. nyan cat, slow loris), the corresponding filename has no space (ex. `nyancat_lg.png`, `slowloris_lg.png`).

See [zoo.json](https://anonymousanimals.herokuapp.com/zoo.json) for my list of animal name candidates that are used to discover anonymous animal images on Google’s server.

Source code for my anonymous animals page is available at [github.com/ogallagher/google_drive_anonymous_animals](https://github.com/ogallagher/google_drive_anonymous_animals).

## References

<ul>
<li>
<a href="https://gist.github.com/rockwotj/6a356a95732985b09e2b”>
github.com/rockwotj/download_anonymous_icons_from_drive.rb
</a> – Ruby script written to download anonymous animal images given a defined list.
</li>
<li>
<a href="https://wayou.github.io/anonymous-animals">							wayou.github.io/anonymous-animals
</a>
</li>
<li>
<a href="https://a-z-animals.com/animals/">
a-z-animals.com/animals
</a> – I just scraped an animal list from this site for my initial attempt at animal discovery.
</li>
<li>
<a href="https://jeffersoncheng.com/Anonymous-Animals">
jeffersoncheng.com/anonymous-animals
</a> - This designer was contracted to design many of the anonymous animals.
</li>
<li>
<a href="http://www.musesrealm.net/deities/creatures.html">
musesrealm.net/deities/creatures
</a> – I scraped an initial fictional animals list from this site.
</li>
<li>
<a href="https://medium.com/@roeder/these-are-all-of-the-anonymous-google-docs-animals-i-have-seen-so-far-8e33e0405993">
medium.com/@roeder
</a>
</li>
<li>
<a href="https://evert.meulie.net/faqwd/complete-list-anonymous-animals-on-google-drive-docs-sheets-slides/“>
evert.meulie.net/faqwd
</a>
</li>
<li>
<a href="https://www.mentalfloss.com/article/545860/wild-things-why-google-docs-feature-anonymous-animals">
mentalfloss.com, by Claire Shefchik
</a>
</li>
</ul>

## Collect them all!

If you are aware of other anonymous animals that don’t appear in my list, let me know and I’ll add them!