Skip to content

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.

Notifications You must be signed in to change notification settings

vicalejuri/cat-avatar-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cat-Avatar-Generator

cover picture

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.

Demo

License:

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

Usage:

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.)

How to edit artworks

  1. Open img/00_SRC.ora with Krita ( or Gimp,Mypaint,Pinta) Do your edit/draw/paint, respect layer naming, save.
  2. Open it again in Gimp 2.8, with the export layer plugin
  3. Scale the image down to the result you want (eg. 256px x 256px as on the demo ) LancZos filter
  4. File > Export layer (Allow invisible layer to be exported, check 'image size', PNG file format )
  5. Done.

All PNG files of 'parts' are extracted this way and keep their layer name.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published