Serialize MTG
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.
Usage
- Clone or download repository
- Install ImageMagick
- Run
Parameters
.\Serialize_MTG.ps1 -TotalCount 100 [-Offset @(10,20)] [-UseColorMap] [-FontPath arial.ttf]
- TotalCount (required): describes, how many versions of each card with incrementing numbers will be created.
- Offset (optional): overrides the location of the upper left corner of the serial box on the cards. This will apply to all inputs, so if you need different offsets, run the script once for each different offset.
- UseColorMap (optional): controls, if the white numbers and box border parts should be overlayed with an image. If you want to customize, replace colormap.png in the repository root directory.
- FontPath (optional): overrides the default font for the numbers.
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.
