1
0
mirror of https://github.com/Wyrrrd/serialize-mtg.git synced 2026-04-17 21:14:53 +02:00

Formatting

This commit is contained in:
Wyrrrd
2026-01-31 16:11:44 +01:00
committed by GitHub
parent a597889ff2
commit c7050a0cb1

View File

@@ -3,7 +3,9 @@
![Two example cards, one serialized in grayscale with 5/7, one in colored gradient with 42/100](example.png)
## Overview
This script bulk overlays a box with numbers over input images to have serialized versions of them, just as WotC does it. The concept includes handling of any input image size (assuming it is roughly a scaled 63mm x 88mm MTG card design). As the box to be applied is taken from a source image, there needs to be two pixel spaces: reference space (1500px x 2100px) and image space (defined by the input image). They will be transformed via an automatically calculated scale. This scale is not x/y separate and only a best effort to not squash the box image, so it might break with input images too far removed from the MTG ratio.
This script bulk overlays a box with numbers over input images to have serialized versions of them, just as WotC does it. The concept includes handling of any input image size (assuming it is roughly a scaled 63mm x 88mm MTG card design).
As the box to be applied is taken from a source image, there needs to be two pixel spaces: reference space (1500px x 2100px) and image space (defined by the input image). They will be transformed via an automatically calculated scale. This scale is not x/y separate and only a best effort to not squash the box image, so it might break with input images too far removed from the MTG ratio.
## Usage
@@ -24,4 +26,4 @@ This script bulk overlays a box with numbers over input images to have serialize
## Credits
The Gotham font family was designed by Tobias Frere-Jones & Jesse Ragan. It is free for personal use. If you want to use it commercially, you need to license it.
The Gotham font family was designed by Tobias Frere-Jones & Jesse Ragan. It is free for personal use. If you want to use it commercially, you need to license it.