It is currently 27 Apr 2024, 16:40
   
Text Size

HQ Cardgen M15/8th/Pre8th/Tokens/Emblem (Updated 2018/01/29)

by Nate and Snacko

Moderators: Snacko, CCGHQ Admins

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby ahkren » 31 Jan 2016, 22:07

For the reminder text, I could probably do something like
Code: Select all
if ($card->flavor != '') preg_replace('/#(\(.*?\))#/su', '', $card->legal)
which would remove reminder text if there is flavor text.
User avatar
ahkren
Programmer
 
Posts: 316
Joined: 18 Jan 2012, 20:43
Has thanked: 50 times
Been thanked: 201 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby satsuki » 31 Jan 2016, 22:22

Cool but not realy usefull because lots of modern extension have reminder for one or two rules + flavor, so it's needing a card by extension method ^^ (but it's not a obligation, it's a proposition)

Or better, an adjustable font size detection > if card text font size < xx then remove reminder ^^, i think it's not too hard to code and automatise the process for anyone text size taste (and set the adjustable font size with an option in the config file, would be great !)

thanks
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby ahkren » 31 Jan 2016, 23:06

Font size is already adjustable in config-* under font.*
I can look into something that removes reminder text is the font size is greater than a certain number.
User avatar
ahkren
Programmer
 
Posts: 316
Joined: 18 Jan 2012, 20:43
Has thanked: 50 times
Been thanked: 201 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby satsuki » 31 Jan 2016, 23:20

ahkren wrote:Font size is already adjustable in config-* under font.*
Yes but i wanted to say "if font size is smaller than value x then remove reminder" so it can heavily limit the impact of too small text if reminder is present.

ahkren wrote:I can look into something that removes reminder text is the font size is greater than a certain number.
You wanted to say "the font size is greatersmaller" ?

Thanks for looking about it, and for your great works, it's realy starting to looks great on most of the cards
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby Tons » 01 Feb 2016, 23:08

Hi again. Akhren, the images of the new eldrazis are superb, but, it would be possible a little more transparency at the text box (looking for perfection!)?
Attachments
Eldrazi Skyspawner.full.jpg
Scanned image
Eldrazi Skyspawner.full.jpg
Generated image
Tons
 
Posts: 14
Joined: 06 Jan 2016, 20:15
Has thanked: 7 times
Been thanked: 2 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby ahkren » 02 Feb 2016, 02:54

I'll see what I can do to get the transparency more in line with the originals.
User avatar
ahkren
Programmer
 
Posts: 316
Joined: 18 Jan 2012, 20:43
Has thanked: 50 times
Been thanked: 201 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby satsuki » 02 Feb 2016, 10:13

Hello i've done a summary of the difference between the preheight extension (so if there is a way to adapt the renderer, only if it's not need big amount of works because it's only fine tuning ^^).

I only reported difference between real card and the actual generator.

Cards with grey font title/type/artist + bigger text + centered text if not much text (even in multiline) + no date + no copyright + no card number + left ajusted artist:
Alpha
Beta
Unlimited
Arabian Nights
Antiquities
Revised
Image


Cards with bigger text + centered text if not much text (even in multiline) + no date + no copyright + no card number + left ajusted artist:
Legends
The Dark
Image


Cards with centered text if not much text (even in multiline) + no card number + left ajusted artist:
Fourth Edition
Fallen Empires
Image


Cards with no card number + left ajusted artist:
Homelands
Ice Age
Alliances
Mirage
Fifth Edition
Mirage
Fifth Edition
Visions
Weatherlight
Tempest
Stronghold
Image


Bold text + flavor separator + no card number + left ajusted artist:
Portal
Portal Second Age
Portal Three Kingdoms
Image


And by the way a last bug a found in the machination title, it's too width
Image

I think so far (i the differents post i writed) i reported to you all the limitations / bug / suggestion i found, so if you need betatesting feel free to ask ^^

Thanks
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby satsuki » 02 Feb 2016, 14:03

I've done a more acurate Conspiracy frame (i think):
Image

>render exemple (need some tweaking in cns logo but not bad i think):
Image
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby rodolmedo » 02 Feb 2016, 15:04

hello, the black part in this card should be red, how can i fix it?
Attachments
Swiftwater Cliffs.full.jpg
rodolmedo
 
Posts: 7
Joined: 29 Jan 2016, 13:00
Has thanked: 8 times
Been thanked: 1 time

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby satsuki » 02 Feb 2016, 15:57

In \data\titleToLandColors.csv
replace line "Swiftwater Cliffs,UB" with "Swiftwater Cliffs,UR" (line 510)
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby satsuki » 02 Feb 2016, 16:12

Found a bug with Garruk, Apex Predator
The m15 version is ok but the cvp isn't
m15:
Image

cvp:
Image


Also the DKA transform card text is too big:
Image

Seems the DTK text font too (maybe is it a M15 render issue witch doesn't set a max text font size ?)
Image
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby ahkren » 02 Feb 2016, 19:16

I've added your Conspiracy frame, looks much better than the mock up that I had.
Changed 'Swiftwater Cliffs' to UR in titleToLandColors

I'm looking into Garruk's CVP version
I'll see what I can do about the text size.
User avatar
ahkren
Programmer
 
Posts: 316
Joined: 18 Jan 2012, 20:43
Has thanked: 50 times
Been thanked: 201 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby satsuki » 02 Feb 2016, 19:41

Thanks a lot
ps: have you found a way to add and option to disable reminder if card text is too small or will it be to much works.
satsuki
 
Posts: 107
Joined: 07 Oct 2012, 08:44
Has thanked: 1 time
Been thanked: 14 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby ahkren » 02 Feb 2016, 19:42

Ok, found the problem with Garruk.
ImageWriter.php line 174 change
Code: Select all
      else if(array_key_exists(strtolower($card->title), $this->titleToPlaneswalker4) && $this->setDB->isM15($card->set) && $config['render.planeswalker'] && $config['render.m15']) {            
to
Code: Select all
      else if(array_key_exists(strtolower($card->title), $this->titleToPlaneswalker4) && $this->setDB->isM15($card->getDisplaySet()) && $config['render.planeswalker'] && $config['render.m15']) {            
I'm still looking disabling reminder text if the font size is too small. Haven't come up with a good solution yet, but it's still on the To Do list.
User avatar
ahkren
Programmer
 
Posts: 316
Joined: 18 Jan 2012, 20:43
Has thanked: 50 times
Been thanked: 201 times

Re: HQ Cardgen M15/8th/Pre8th/Tokens (Updated 2016/01/30)

Postby ahkren » 02 Feb 2016, 19:59

Scheme title length fix
SchemeRenderer.php line 59 change from
Code: Select all
      $this->drawText($canvas, $settings['title.x'], $settings['title.y'], null, $card->getDisplayTitle(), $this->font("title$languageFont"));
to
Code: Select all
      $this->drawText($canvas, $settings['title.x'], $settings['title.y'], 518, $card->getDisplayTitle(), $this->font("title$languageFont"));
This will set a max width just smaller than the text box of the Scheme.
User avatar
ahkren
Programmer
 
Posts: 316
Joined: 18 Jan 2012, 20:43
Has thanked: 50 times
Been thanked: 201 times

PreviousNext

Return to HQ Card Generator

Who is online

Users browsing this forum: No registered users and 20 guests


Who is online

In total there are 20 users online :: 0 registered, 0 hidden and 20 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 20 guests

Login Form