1
0
mirror of https://github.com/Wyrrrd/serialize-mtg.git synced 2026-02-10 12:54:52 +01:00
2026-01-31 16:11:44 +01:00
2026-01-31 15:34:40 +01:00
2026-01-31 16:09:03 +01:00
2026-01-31 16:09:03 +01:00
2026-01-31 16:09:03 +01:00
2026-01-31 16:09:03 +01:00
2026-01-31 16:09:03 +01:00
2026-01-31 15:34:40 +01:00
2026-01-31 16:11:44 +01:00
2026-01-31 16:09:03 +01:00
2026-01-31 16:09:03 +01:00

Serialize MTG

Two example cards, one serialized in grayscale with 5/7, one in colored gradient with 42/100

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

  1. Clone or download repository
  2. Install ImageMagick
  3. 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.

Description
Script to bulk apply serial boxes to cards
Readme GPL-3.0 513 KiB
Languages
PowerShell 100%