pocard

PokemonCard Generator


Keywords
POkemon, yugioh, card, maker, generator, pillow, python
License
MIT
Install
pip install pocard==0.0.7

Documentation

Pokemon Card

Install This Library

#Pypi
$ pip3 install pocard
#Github
$ git clone https://github.com/krypton-byte/pocard
$ cd pocard && python3 setup.py build && python3 setup.py install --user

Use

CommandLine

$ python3 -m pocard index[0-3] "title" "desc" input_image output_image method:[scale, crop, auto]
example:
$ python3 -m pocard 0 "Title" "desc" in.png out.jpg scale

Python Interpreter

>>> from pocard import CARDS
>>> CARDS[0].maker("Title", "image_input.png", "Desk", font_color=(0, 0, 0), image_method="auto").show()
>>> CARDS[0].maker("Title", "image_input.png", "Desk", font_color=(0, 0, 0), image_method="auto").save("out.png")
# image_input type: BytesIO, Image.open Object, string(path+filename)
# image_method: scale, auto, crop

Preview

Donasi