A Python script to compose cartoon strips from images.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fonts
.gitignore
1.jpg
2.jpg
3.jpg
4.jpg
COLUMN2.JPG
COLUMN4.JPG
OUTPUT.JPG
README.md
cartoon.py
requirements.txt

README.md

Intro

A Python script to compose cartoon strips from images.

Example

Input:

A image:

Another:

Another:

Another:

Default output (-c 1):

Output with -c 4 option:

COLUMN4.JPG

Output with -c 2 option:

COLUMN2.JPG

Description

  1. Put images in a directory with jpg extension file (lowercase),
  2. Run the script with the appropriate arguments and
  3. End

The image order is file name alphabetical.

When using the default directory, it is important that, the extension of the output file was JPG uppercase because if it is jpg and you run the script again the output image will be included.

Options:

  • -d Directory. Default, where the file is called.
  • -r RGB. Default black and white.
  • -c Number of columns.
  • -o Output file image. Default OUTPUT.JPG
$ python cartoon.py -h
usage: cartoon.py [-h] [-d DIRECTORY] [-t TITLE] [-u URL] [-e EMAIL]
                  [-c COLUMNS] [-r] [-o OUTPUT]

Tile images and add labels.

optional arguments:
  -h, --help            show this help message and exit
  -d DIRECTORY, --directory DIRECTORY
  -t TITLE, --title TITLE
  -u URL, --url URL
  -e EMAIL, --email EMAIL
  -c COLUMNS, --columns COLUMNS
  -r, --rgb
  -o OUTPUT, --output OUTPUT