Everything is better! My Face Generator is progressing nicely. I think the galleries for men and women are already pretty good. The entire app is running on Hypnotoad behind Apache/mod_proxy. It’s fast! And I’m going to support multiple artists. Please help me if you can! I’m not great with faces. I have barely drawn any until this project started. I had to read How to Draw a Face on WikiHow, that’s how bad I was!
Here’s how I’m doing it right now. The basic instructions are on GitHub.
If you printed the default file, this is what it would look like:
Download the PDF!
Make sure you don’t scale the image to fit the page. Try to use 100% of the image.
Then you draw 25 images of a particular element: hair, eyes, nose, ears, mouth, chin. 10% of all faces also get an extra element. Good for scars. My experience is that you need around 50 components for every element to provide enough variety – two sheets for each element is what I suggest.
Then you scan it. You should get something like the following:
There are more examples on Flickr.
If you have something like the above your work is done. Send the images to me and I will do the rest!
What does the rest involve? You crop it and resize it to 2250×3000 pixels. My scanner is notoriously bad about these proportions.
I have scripts to extract whatever you draw from the helping lines of your scan. I have three variants ready to go:
convert -blur 0x1 +dither -remap tintenblau.png scan1.jpg source1.png
convert -blur 0x1 +dither -level 30%,80% scan1.jpg source1.png
convert -blur 0x1 +dither -level 50%,80% -grayscale rec709luma scan1.jpg source1.png
I think you need to think about speed. Two sheet per element with six elements means 12 sheets. Save yourself the time of inking! Fiddle with the
-level argument instead. The first percentage means that every pixels darker than this much is going to end up black. The second percentage means that every pixel lighter than this much is going to end up white. Raise the first number until you’re happy with the darkness of your image. Lower the second number until the helping lines disappear.
You should end up with something like the following:
Now’s the time to use my
cutter script. It splits the image into 25 images of 450 x 600 pixels each. You must tell it the artist (alex), the element (hair, eyes, nose, ears, mouth, chin, extra) and the type (man, woman, elf, dwarf) you want to save it under:
perl helpers/cutter.pl source1.png alex eyes_all.
Eventually, you’ll end up with a large number of files.
And that’s it! I commit it to my repository on GitHub and deploy it on my server.
If you’re running the web application, there’s even the possibility to debug faces.
I’m going to link to the debug interface so that you can take a look – but in the end, you won’t be able to save any changes unless you’re the artist of one the collections.