Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/krypton-byte/pocard

Pokemon Card Maker
https://github.com/krypton-byte/pocard

card generator maker pillow pokemon python yugioh

Last synced: 5 days ago
JSON representation

Pokemon Card Maker

Awesome Lists containing this project

README

        



# Pokemon Card
# Install This Library

```bash
#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

```bash
krypton-byte@glitch:~/pocard$ python3 -m pocard --title a --desc hai --card-2 --CROP --save anu.jpg --image hasil.webp --help
usage: __main__.py [-h] --title TITLE --desc DESC --image IMAGE --save SAVE (--card-0 | --card-1 | --card-2 | --card-3) (--AUTO | --SCALE | --CROP)

options:
-h, --help show this help message and exit
--title TITLE
--desc DESC
--image IMAGE
--save SAVE

CARD:
--card-0
--card-1
--card-2
--card-3

METHOD:
--AUTO
--SCALE
--CROP

$ python3 -m pocard --title "hello world" --desc "this is description" --image input.jpg --save output.jpg --card-0 --AUTO
```

Python Interpreter

```python
>>> 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