Pillow library must be installed in order to crop images. ![]() In command line, execute crop_utility.py as follows: python crop_utility.py In command line, execute command: pip install Pillow source: Path containing images to be cropped.destination: Destination path for the cropped images.The path must exist before executing the command.card_type: Specifies the type of the cards (Creature, Spell or Cross Gear).Therefore, there should be separate source paths for each card type.Įxample command: python crop_utility.py path/to/spell/images './img/artwork/DM-05 Survivors of the Megapocalypse' Spell svg_painter.py: The type of the cards affects how the images are cropped. Svg_painter.py is used in creating SVG files for Duel Masters cards. ![]() The artworks cropped with crop_utility.py should be moved into img/artworks/ directory so that svg_painter.py is able to locate them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |