A generator of cats pictures optimised to generate or random avatars, or defined avatar from a "seed". A derivation by David Revoy from the original MonsterID by Andreas Gohr's.
This repository also includes a pure javascript(no jquery,ES6) version, for you folks who don't have access to a PHP enabled server.
Artworks: PNG and ORA files licensed under: CC-By 4.0 attribution: David Revoy with the following exception: Generated cats used as Avatar (for blog,forum,social-network) don't need direct attribution and so, can be used as regular avatars without pasting David Revoy's name all over the place.
Code This PHP/Javascript is licensed under the short and simple permissive: MIT License
Using PHP, call the script this way:
echo '<img height="70px" width="70px" src="your/path/to/cat-avatar-generator?seed='.$var.'"/>';
In pure Javascript, use it like this:
<div class="avatar" data-seed="myusername">
<img alt="myusername" class="small">
</div>
<div class="avatar" data-seed="otherusername">
<img alt="otherusername" class="big">
</div>
<script src="/cat-generator.js"></script>
<script>
var cat = new Meowatar({selector: '.avatar', assets_path: 'https://your/path/to/cat-avatar-generator/avatars/'})
</script>
(Note: for the seed, I advice to use author's name to not expose email or sensitive datas, even hashed on a public code.)
- Open img/00_SRC.ora with Krita ( or Gimp,Mypaint,Pinta) Do your edit/draw/paint, respect layer naming, save.
- Open it again in Gimp 2.8, with the export layer plugin
- Scale the image down to the result you want (eg. 256px x 256px as on the demo ) LancZos filter
- File > Export layer (Allow invisible layer to be exported, check 'image size', PNG file format )
- Done.
All PNG files of 'parts' are extracted this way and keep their layer name.