Skip to main content

Using Stable Diffusion to create simple illustrations for print

 I made a short video explaining how to use Stable Diffusion to create illustrations for print books.


I used Krita to edit the photos but pretty much any image editor would do, you just need to be able to make selections and erase.

Here are the steps -

Step One

Go to https://huggingface.co/spaces/stabilityai/stable-diffusion

or https://stablediffusionweb.com/#demo

and enter a prompt for the image you want.

For this tutorial, I put "monsters black and white hand drawn illustrations".

Use the guidance scale at the bottom (if available) to tweak the settings.

I normally try to keep it between one and nine but experiment and see what you come up with.

After anything between 30 seconds and a minute, you should get your generated pictures.

If you don't get anything you like, keep trying!

Add more keywords and move the guidance scale until you get something you are happy with.

When you are done just right click or hold the image to download it.

It gave me a image filled with hand drawn monsters so now lets edit it.

Step Two 

I opened the image with Krita and then used the "Freehand select tool" to draw roughly around the monster I wanted.

You could also use one of the "Shape select tools" like the rectangle and drag the shape around the item you would like to edit.

I then chose "Copy" from the Edit menu, then "Paste into New Image".

This creates a new image at the size of the shape I have just copied.

Depending on what other bits of image or background are around the monster you want, you can use the "Magic Wand" to select a contiguous colour to erase large sections by clicking on a part of the image that is a different colour to your monster. You can then hold the shift key and click to add to the selection. If you then click "Cut" from the Edit menu, it will remove everything you have selected.

Otherwise choosing the Brush (in Krita) and changing its attribute to Erase, simply click and drag over the parts of the image you don't want. I would use small strokes and release the mouse / pen regularly otherwise if you make a mistake and Undo, it will put everything back!

Use the zoom and change the size of the tooltip to erase fine areas.

You should now have a relatively clean picture of a monster surrounded by a grid denoting transparency.

Save the file through the "Export" menu as a PNG file. This will preserve the transparency.

Congratulations, you now have an image to use in a book!



Comments

Popular posts from this blog

Writing Attack of the Zombie Vampires

 Uploaded a video about writing Attack of the Zombie Vampires The original inspiration for attack of the zombie vampires or zompires came years ago when I had an idea for a series of short films. They were a parody of a Van Helsing type character who would disguise himself as a typical victim and after defeating the monster loudly proclaim 'the menace has been defeated'. I can remember wanting to call one of them 'the phantom menace' and having a chuckle about the thought of someone clicking on the video and instead of enjoying a George Lucas epic they would see this strange little movie instead. Yes, I have a pretty weird sense of humour. I never made the films but the idea of the character stuck and after having various discussions about what a vampire / zombie hybrid might be like, I had the seed of what became 'Attack of the zombie vampires'. It was always going to be slightly comedic because it just sounds like some trashy straight to video flick from the 1...

Why write adventure gamebooks?

 Uploaded a video about why I write gamebooks. So why write adventure gamebooks? To explain that we'll have to take a little dive into history. I'm not sure what was my first gamebook but the first ones I remember were the fighting fantasy series, starting with house of hell. I was around 10 years old and loved horror so the combination of the illustrations coupled with the spooky story was right up my alley. I bought a few more in the fighting fantasy series then started to branch out into other ones. I was really into ninjas so bought a couple of the assassin series which were great and then got hooked on the falcon series, buying all but the last one which I couldn't find anywhere at the time. I had a few other one offs like an Indiana Jones tie in and a choose your own adventure as well as a 2000AD Slaine adventure comic. As I grew older I lost interest and got more into console gaming, leaving the books in a box to be found every now and again for a quick perusal befor...

Monstrous Manor - Now published!

My new book, Monstrous Manor has now been published and is available to buy from most online digital resellers (see links below!) Invited to spend the evening at an old country Manor House, you arrive to find your host is missing. Search for your host in the manor and grounds while facing danger at every turn in this exciting adventure gamebook. No dice or equipment required. Buy the paperback or ebook from Amazon Monstrous Manor at Amazon