I became interested in the fascinating world of tarot after playing an embarrassing amount of Balatro on my Steam Deck and wondering what those strange mystical cards in the game actually were. After purchasing my first tarot deck out of curiosity, I became hooked and have since amassed a healthy collection of personal decks. I enjoy sifting through the cards and admiring their beautiful and mesmerizing artwork.
Being a software developer, I wondered how difficult it would be to create a desktop application that would allow me to digitize my growing pile of tarot decks. That thought spawned the Arcana Land project and the Tarot Canvas desktop application for Linux.
From Card To Image¶

Before I could start scanning cards, I needed to first design the file format and layout for a tarot deck on disk. The Tarot Specifications repo started with a simple Markdown sketch, but eventually ballooned into a behemoth 69-page PDF (nice) describing the format in painstaking detail, as well as additional formal specs for Tarot Spreads and Card Meanings.
Once I had the file format worked out, I started "scanning" individual cards by taking pictures of them with my iPhone and manually cropping them, which was obviously tedious and error-prone. So I pivoted into developing a Python command-line tool named deckle that would help me automate this a bit.
First, I created a 3D-printed jig that would be used while scanning, which would help identify the cards within the scanned images. With the jig and scanner set up, the command-line tool drives a workflow that is simple and almost meditative:
- Place 4 cards into the jig on the scanner and run
deckle scan - Once scanned, the tool uses OpenCV to find and extract the 4 cards in the image
- While OpenCV crunches the numbers, I reload the scanner with 4 new cards and repeat
Organizing Images¶
With individual cards as raw images in a folder, I needed to organize them into the format described in the specification. The solution I arrived at was to open the folder of images in KDE's image viewer Gwenview and assign each image a label in its XDG User-Comment extended attribute that corresponds to the shown card. For example, on a scan of the
Strength card, I'd write the label major_arcana.08 in Gwenview and for the
Eight of Cups, I would write minor_arcana.cups.eight.
Lastly, a final pass of the command-line tool reorganizes images based on their label and outputs them into a structured format to my ~/.local/share/tarot library.
~/.local/share/tarot
└── my-deck
├── deck.toml
└── h2400
├── major_arcana
│ ├── 00.png
│ ├── 01.png
│ ├── [...]
│ └── 21.png
└── minor_arcana
├── cups
│ ├── ace.png
│ ├── [...]
│ └── king.png
├── pentacles [...]
├── swords [...]
└── wands
├── ace.png
├── [...]
└── king.png
This is an example manifest from one of my favorite decks, The Wisdom of Pooh Tarot.
[deck]
name = "Wisdom of Pooh Tarot"
artist = "Kat L. Amsel"
creator = "Serefina & Angel Mesa"
publisher = "Rue & Vervain"
packager = "Adam Fidel <adam@arcana.land>"
identifier = "cards.wands/deck/wisdom-of-pooh-tarot"
attribution = "Created by Serefina & Angel Mesa. Illustrated by Kat L. Amsel"
rights_status = "https://rightsstatements.org/vocab/InC/1.0/"
redistribution = "none"
related = [{ rel = "pattern", target = "land.arcana/pattern/rider-waite-smith" }]
version = "1.0"
schema_version = "2.0"
Tarot Canvas¶
After scanning my tarot decks into images on my computer, it would be nice to be able to view them in something besides a file browser. So I created the desktop app Tarot Canvas that has evolved into a comprehensive application for viewing, reading and studying tarot.

Not only does it let you view your own tarot cards (as well as cards from freely licensed decks), it also acts as an encyclopedia for tarot card meanings from so-called esoterica packs. These are TOML files that define card meanings and act as a standardized way for users to encode interpretations from various authors.
There are few texts describing tarot card meanings that are both permissively licensed and drafted in the last fifty years. Thankfully, the author Mark McElroy released his book of card meanings under the Uncopyright license in 2014, allowing me to package it for users of Tarot Canvas out of the box.

Finally, another major feature is the ability to create custom tarot spreads in the application, which are saved as yet another TOML file. With these spreads, you can perform a reading from any one of your tarot decks by pulling cards at random into the slots of the custom spread.

Future Direction¶
Arcana Land's goal is to make open standards for digital tarot and to make tarot accessible, open and free.
My hope is that other developers who wish to incorporate tarot into their own applications can use these file formats for tarot decks, spreads and card meanings. To that end, I created a Python library arcana-tarot to read these files, which uses a backend C++ library libarcana. Feel free to kick the tires a bit, but do keep in mind that the API will be unstable before a full 1.0 release.
Finally, I have plans for releasing the app on macOS and Windows, since I have a hunch that the Venn diagram of tarot enthusiasts and Linux users is quite small. So stay on the lookout for that one.