Git Product home page Git Product logo

mtg_deck_pic's Introduction

MTG Deck Pic Generator

Skip finding your cards from a mountain of deckboxes/trade binders and manually aligning your cards before taking a perfect MTG deck picture. Start automatically generating MTG deck pictures with your decklists and your own card collection.

Usage

Download this repo by clicking the following buttons:

download

Unzip it to a desired folder on your machine.

To run the program, please refer to the OS system specific to your machine:

On Windows

There are 2 ways you can run this program.

First way, double click the exe file directly and it will generate the deck picture for grixis_delver in your /decklist folder. Keep in mind that it would overwrite the existing grixis_delver.jpg file in the /decklist folder.

Second way, if you want to generate deck pictures for other decklists, search for Command Prompt in Search and open it.

In the Command Prompt, go to the unzipped folder by running:

cd /path/to/your/folder

For example:

cd C:\Users\manted\mtg_deck_pic-main

To run the program:

start deck_pic_generator DECKNAME

For example:

start deck_pic_generator grixis_delver

On Mac

Open the Terminal app.

In the terminal, go to the unzipped folder by running:

cd /path/to/your/folder

For example:

cd /Users/manted/mtg_deck_pic-main

To run the program in the terminal:

./deck_pic_generator DECKNAME

For example:

./deck_pic_generator grixis_delver

The DECKNAME should be one of the text file names in the /decklist folder, without the txt extension. The generated image would be /decklist/DECKNAME.jpg.

Card Names

The card names in the decklists must match exactly the image names in the /img folder, without the png extension.

The individual card images must be in png format.

Deck Picture Background

The background of the generated image is /img/background.jpg. You can replace it with any image of your choice and regenerate the deck pictures.

Limitations

  • Main deck size has to be exactly 60 or 80. Sideboard size has to be exactly 15.
  • Split card names with / in them are not working at the moment. eg: Fire // Ice. You can use a different name without the / in the decklists and image names in /img folder. eg: Fire Ice.
  • Cards that are in the decklists but are not in the /img folder will be left blank in the generated deck picture.
  • Same card image is used for each card name in the decklist, if you want to have different versions of a card, you can give them different names. For example, you have Island_1.png and Island_2.png, and use them as different cards in your decklist.

mtg_deck_pic's People

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.