Skip to content

A Python script to compose cartoon strips from images.

Notifications You must be signed in to change notification settings

DanielDorado/cartoonpy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A Python script to compose cartoon strips from images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%