chilli-axe / mtg-photoshop-automation

Photoshop scripting to generate high-quality Magic card renders, inserting Scryfall data into Photoshop frame templates.
GNU General Public License v3.0
60 stars 39 forks source link

Name of the card, mana cost and flavor text misaligned #21

Closed ImperatorJulius closed 2 years ago

ImperatorJulius commented 3 years ago

Hello, The script seems to works just fine, but the name of the card and mana cost are misaligned off the card. The flavor text is weirdly cutted, see the pictures to see what i mean. Any ideas on how to fix it?

https://imgur.com/a/dydWgRW

Windows 10 Photoshop CS6 13.0.1 x32

PS: Also, any ideas on how to change the language of the cards since scryfall also provides infos in other languages.

ImperatorJulius commented 3 years ago

By changing line 751 in proxy.jsx Justification.RIGHT to Justification.LEFT seems to work for mana cost.

https://imgur.com/a/yUD9tjs

ImperatorJulius commented 3 years ago

I placed an error just before image saving to see where is the problem. Card Name and Card Type are justified to the RIGHT instead of LEFT. By manually fixing it, it works fine. At one point the justification must be swapped, but i don't know where. For the flavor text, since it is generated as an image with the rule text, i can't manually fix it.

ImperatorJulius commented 3 years ago

I used the solution of #14 by @hunz-dev consisting in forcing the justification for the name and cardtype. It looks like this: For the card name, from ligne 18 to line20 https://gist.github.com/ImperatorJulius/795eb3cd8c49b960fb75ee4ba00e3bff#file-gistfile1-txt-L18

For the card type, from ligne 40 to line 42 https://gist.github.com/ImperatorJulius/795eb3cd8c49b960fb75ee4ba00e3bff#file-gistfile1-txt-L40

For the flavor text, i just removed it since i have no solution.

ndepaola commented 2 years ago

this is fixed in the project rewrite from a few months ago