1
0
mirror of https://github.com/Wyrrrd/serialize-mtg.git synced 2026-06-27 04:30: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
+3 -1
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) ![Two example cards, one serialized in grayscale with 5/7, one in colored gradient with 42/100](example.png)
## Overview ## 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 ## Usage