PlayersCouncil / LotR-TCG_card_generator

nanDECK script for generating Lord of the Rings TCG cards from CSV.
6 stars 0 forks source link

New way of rendering icons #13

Open morvael opened 4 years ago

morvael commented 4 years ago

Currently icons are using full-sized images with icons prepositioned manually. Please rework this so normal (without any padding) icon image ends up rendered in correct location on the card (perhaps numeric values rendering locations should be a hint where to place bounding boxes). IMHO Nandeck has some options to render unscaled images at target rectangle center.

ketura commented 4 years ago

This is possible to do but tedious, as the only way it can be managed is through trial-and-error: draw each icon at a guessed coordinate, and adjust the coordinate bit by bit until it lines up, re-generating the card each time until it lines up properly. Then, re-generate at all three template sizes and make sure it still lines up properly.

There are by my count 7 general icons, custom positions of all 17 culture icons (for Artifact overlays and full-art icons), and the follower twilight icon variant which will all need adjusted by hand in this manner.

Possible to do!

But very tedious. I will accept any pull request that includes all those coordinates for refinement, but am unlikely to do that work on my own, considering that for most people it is probably easier to just slap an icon on the full-sized positioned template in photoshop and call it a day.