Giter VIP home page Giter VIP logo

doitforh's Introduction

do it for h(er) - motivational anime girl collage generator

A little bit of lore

In the 13th episode of the 6th season of The Simpsons, Mr. Burns decorates Homer's cubicle with a special demotivational plaque. Throughout the episode, Homer deepens his relationship with his daughter Maggie and embellishes the poster accordingly.

Over the years, the collage was turned into a template, vectorized and eventually gained meme status in the wider anime community.

This script steps up the game a level higher and automates the whole ordeal of downloading images and painstakingly pasting them into the template.

Dependencies

  • Python 3.x
    • requests
    • PIL

Invocation and options

  • ./difh.py -c character_name generates a collage, displays it and saves it in the working directory as character_name_xyz.png
  • ./difh.py -h shows additional options

On character names and tags

Character tags on Danbooru and other similar aggregators follow a few specific conventions, such as:

  • all lowercase, words separated by underscores (example: princess_zelda)
  • in case of Japanese names, Asian name order is used (surname first) (hakurei_reimu)
  • in rare cases (mostly short names or ambiguity), franchise name may be required (mercy_(overwatch))

When in doubts or no images have been found, try searching among Danbooru tags - though be wary when clicking on the tags themselves, as content on Danbooru is unfiltered and not always safe for work.

You can specify additional tags in the -t option - note that this overrides the default solo tag. Separate tags by +. You can also blacklist tags by prefixing them with -. (example: solo+smile+-blood)

Image sources

Currently, all imagws are grabbed from Safebooru, a very NSFW-filtered version of Danbooru. Switches for different aggregators are planned.

doitforh's People

Contributors

drehak avatar

Stargazers

Ali Hasan Galib avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.