Dominion Strategy Forum

Dominion => Variants and Fan Cards => Topic started by: Violet CLM on December 07, 2016, 06:11:37 pm

Title: Dominion Card Image Generator
Post by: Violet CLM on December 07, 2016, 06:11:37 pm
ORIGINAL: https://shemitz.net/static/dominion3/
NEW FORK: https://shardofhonor.github.io/dominion-card-generator/index.html

Forcing people to use Photoshop or GIMP or whatever with elaborate downloadable template files has always seemed a bit of a silly barrier to card (mockup) creation, so I wrote a quick tool that lets you type in your card's text, choose some colors and a picture, and get the image generated for you. (Tested on desktop in Chrome, Firefox, and Opera--doesn't work in IE11, but not in a way that gives any error messages or anything, so I don't know what's going on there yet.)

The URL updates itself as you change the various fields, so all you need to do to save a card is copy (or bookmark) the URL and you'll be able to come back to it later. Once you're done, right click the image preview and your browser of choice should give you some options to copy and/or save the image (at a much higher resolution than displayed in the webpage).

Uses edits of the Action template image on BGG (https://boardgamegeek.com/image/403449/dominion),the Event template and Traveller arrow from this thread (http://forum.dominionstrategy.com/index.php?topic=14704.0), plus specific card scans and the Shuffle iT images.

Note: This tool should be viewed as a work-in-progress for the time being. The card images produced for specific texts and other options may look different in the future than they do now. The latest update is version 1.5; replies prior to this post (http://forum.dominionstrategy.com/index.php?topic=16622.msg770673#msg770673) are responding to earlier versions.

NEW: Shard of Honor has forked this tool starting at this post (http://forum.dominionstrategy.com/index.php?topic=16622.msg785944#msg785944). Their version includes several new features and is receiving more active development. Check out Shard's version here. (https://shardofhonor.github.io/dominion-card-generator/index.html)


Some samples, but written more as excuses to test the various colors and icons than as serious efforts to make good cards...

Model Village (https://shemitz.net/static/dominion3/?title=Model%20Village&description=%2B2%20Cards%0A%0APlay%20up%20to%20two%20action%20cards%20from%20your%20hand%20that%20you%20already%20have%20copies%20of%20in%20play.&type=Action&price=%243&preview=&picture=http%3A%2F%2Fwww.alpha.harrow.sch.uk%2Fimages%2Fbaeckon13%25201.JPG&color0=0&color1=0)
Dividends (https://shemitz.net/static/dominion3/?title=Dividends&description=When%20you%20play%20this%2C%20choose%20one%3A%20%2B%20%242%20and%20put%20a%20coin%20token%20on%20the%20Dividends%20Supply%20pile%2C%20or%20take%20the%20coin%20tokens%20from%20the%20Dividends%20Supply%20pile.&type=Treasure-Gathering&price=%244&preview=%242&picture=https%3A%2F%2Fwallstreetandbeyond.files.wordpress.com%2F2016%2F02%2Fdividends.jpg&color0=1&color1=0)
McMansion (https://shemitz.net/static/dominion3/?title=McMansion&description=2%25%0A-%0AWhen%20another%20player%20gains%20a%20victory%20card%2C%20you%20may%20reveal%20this%20and%20a%20copy%20of%20that%20card%20from%20your%20hand.%20If%20you%20do%2C%20trash%20the%20copy%20and%20gain%20a%20victory%20card%20costing%20up%20to%20%243%20more.&type=Victory-Reaction&price=%405&preview=&picture=http%3A%2F%2Fwww.theearthyreport.com%2Fwp-content%2Fuploads%2F2010%2F03%2Fmcmansion-.jpg&color0=3&color1=3)
Undeveloped Mine (https://shemitz.net/static/dominion3/?title=Undeveloped%20Mine&description=-%20%245%0APut%20this%20on%20your%20Tavern%20mat.%0A-%0ADuring%20your%20buy%20phase%2C%20you%20may%20call%20this%2C%20for%20%242.&type=Action-Reserve-Shelter&price=%241&preview=&picture=https%3A%2F%2Fi.ytimg.com%2Fvi%2FmLNg6KzjhHo%2Fmaxresdefault.jpg&color0=7&color1=6)
Superstition (https://shemitz.net/static/dominion3/?title=Superstition&description=At%20the%20start%20of%20each%20of%20your%20buy%20phases%20while%20this%20is%20in%20play%2C%20discard%20either%20this%20or%20a%20card%20from%20your%20hand.%0A%0A-%0A%0AAt%20the%20end%20of%20the%20game%2C%20you%20may%20trash%20this%20if%20it%20is%20in%20play.%20Otherwise%2C%20-2%25.&type=Action-Duration-Curse&price=%240&preview=&picture=http%3A%2F%2Fbuzzkeys.com%2F2016%2F10%2F10-little-known-facts-about-halloween-2.jpg&color0=6&color1=5)
Title: Re: Dominion Card Image Generator
Post by: ThetaSigma12 on December 07, 2016, 06:46:45 pm
Wow, I always wanted to make this myslef but I lacked the skill! A few comments:

Text in the middle is Times New Roman, in coin symbols and the such it's minion heavy std.

I have some nicer templates I could PM.

It would be nice if there was a way to upload an image, and an easy way to resize it.

A quick wording/punctuation guide at the bottom would be cool.

The preview coins are off kilter

VP symbols and Big Treaure icons aren't properly implimented.

Still, wow. It's not as good as making them by hand but it's still pretty good.
Title: Re: Dominion Card Image Generator
Post by: AdrianHealey on December 07, 2016, 06:52:20 pm
THIS IS AMAZING FOR IDIOTS LIKE ME OMG
Title: Re: Dominion Card Image Generator
Post by: Chris is me on December 07, 2016, 08:13:46 pm
THIS IS AMAZING FOR IDIOTS LIKE ME OMG

samesies
Title: Re: Dominion Card Image Generator
Post by: Violet CLM on December 07, 2016, 09:29:23 pm
Thanks for the tips!
Text in the middle is Times New Roman, in coin symbols and the such it's minion heavy std.
Times New Roman should be right unless I messed up the syntax for setting up a multi-word font name... I can double-check, though. The coin symbol thing is a good tip, I didn't think to check that and it should be easy to implement.
Quote
I have some nicer templates I could PM.
If there's something that's generally accepted as the best template (and at a similarly high resolution), that would be good... I won't enjoy redoing all the hardcoded sizes and offsets, but it shouldn't take too long.
Quote
It would be nice if there was a way to upload an image, and an easy way to resize it.
Uploading shouldn't be too hard to implement, but it wouldn't be possible to maintain the image across visits to the page, so there's a tradeoff there. :( It's probably a good idea, but didn't feel like a Day 1 feature. By resizing I'm guessing you mean zooming in so you don't use the entire image? That'd probably more than double the code (and I'd want to minimize it in the API somehow, to keep things simple until you need them complicated), but there might be libraries somewhere I could find...
Quote
A quick wording/punctuation guide at the bottom would be cool.
If one already exists, I could include it?
Quote
The preview coins are off kilter
Ah, I forgot to double-check the positioning on all the corner icons, thanks.
Quote
VP symbols and Big Treaure icons aren't properly implimented.
VP symbols should be okay (http://shemitz.net/static/dominion3/?title=Cathedral&description=3%25%0A-%0AWhen%20you%20buy%20this%2C%20trash%20any%20number%20of%20Curses%20from%20your%20hand.%20Gain%20a%20Cathedral%20for%20every%20card%20trashed%2C%20or%20gain%20a%20Curse%20if%20you%20did%20not%20trash%20any.&type=Victory&price=%246&preview=&picture=http%3A%2F%2Fsfxcathedralgb.com%2Fmedia%2F1%2F15%2FSaint%2520Francis%2520Xavier%2520Cathedral%2520photograph%2520for%2520Rack%2520Cards.jpg&color0=2&color1=0), you just have to precede % with a space or it won't be parsed as a symbol... I can probably get the rules to be a little more flexible, but again this was enough for a first try. There is indeed no way yet to have the extra-sized treasure/VP lines; I don't know if there's a formal rule that predicts when those are or aren't used, and I hoped if I posted here without implementing that then somebody would tell me how it's supposed to work. :-[
Title: Re: Dominion Card Image Generator
Post by: Doom_Shark on December 07, 2016, 10:23:05 pm
Had to test it myself, so I quickly slapped together an idea I had for awhile...and I was impressed. Thanks for this quick and easy tool!
Edit: Got a decent looking custom color for Seasons cards a la asper and co0kiel0rd. The numbers: 10, 1.1, 1.35. I find it looks better if you set it as both the primary and secondary colors.
Title: Re: Dominion Card Image Generator
Post by: ThetaSigma12 on December 08, 2016, 08:27:01 am
A few more things:

The cost and types need to be centered a little better

Type font should be smaller

(http://wiki.dominionstrategy.com/images/thumb/9/92/VP.png/16px-VP.png) and their numbers (like on catherdral) need to be bigger and bolder

It would be nice to have an option to specifically bold/itallic things.


I'm working on a quick Wording guide that I'll pm.
Title: Re: Dominion Card Image Generator
Post by: werothegreat on December 08, 2016, 09:02:59 am
Testing:

(http://i.imgur.com/YaLOvyf.png)

Neat!  Any plans for an Event/Landmark generator?
Title: Re: Dominion Card Image Generator
Post by: Nflickner on December 08, 2016, 03:13:43 pm
Wow.  Wow.  This is incredible.  Please update with options for landmarks and events :)  Thank you :)
Title: Re: Dominion Card Image Generator
Post by: Violet CLM on December 08, 2016, 03:13:48 pm
Neat!  Any plans for an Event/Landmark generator?
Sure, but since such a thing will reuse a lot of the same code--including, I suppose, the custom color stuff--I'd like to get this done first so that I only have to make changes in one place at a time.
Title: Re: Dominion Card Image Generator
Post by: Nflickner on December 09, 2016, 05:00:10 pm
Hmm.  I noticed that the lettering for the cost of the cards seems a little thin?  If you compare it to normal dominion cards, the cost numbers are a little thicker, bolder.  Is it possible to tweek that a little?
Title: Re: Dominion Card Image Generator
Post by: ThetaSigma12 on December 09, 2016, 05:12:53 pm
Hmm.  I noticed that the lettering for the cost of the cards seems a little thin?  If you compare it to normal dominion cards, the cost numbers are a little thicker, bolder.  Is it possible to tweek that a little?
I emailed him nicer templates, and all the Cost and Coin icons he could need (+(http://wiki.dominionstrategy.com/images/thumb/9/92/VP.png/16px-VP.png)/(http://wiki.dominionstrategy.com/images/thumb/7/7a/Potion.png/9px-Potion.png).) He should update it sometime soon, but it's a lot of work I belive so be patient  :).
Title: Re: Dominion Card Image Generator
Post by: Nflickner on December 09, 2016, 06:54:41 pm
Hmm.  I noticed that the lettering for the cost of the cards seems a little thin?  If you compare it to normal dominion cards, the cost numbers are a little thicker, bolder.  Is it possible to tweek that a little?
I emailed him nicer templates, and all the Cost and Coin icons he could need (+(http://wiki.dominionstrategy.com/images/thumb/9/92/VP.png/16px-VP.png)/(http://wiki.dominionstrategy.com/images/thumb/7/7a/Potion.png/9px-Potion.png).) He should update it sometime soon, but it's a lot of work I belive so be patient  :).
Thanks Theta and Violet :)  You both rock!
Title: Re: Dominion Card Image Generator
Post by: kru5h on December 09, 2016, 09:38:30 pm
Could you add a way to add italics?

I believe things like "(This is not in the supply.)" and "(This stays in play.)" are supposed to be in italics.

Edit: Also more control over Bold. It seems to try to auto-bold things for you, but messes up sometimes. Here's an example: http://shemitz.net/static/dominion3/?title=Bold%20Test&description=Choose%20one%3A%0A%2B1%20Card%20and%20%0A%2B1%20Action%3B%20or%20%2B%20%242&type=Action&price=%243&preview=&picture=&color0=0&color1=0
Title: Re: Dominion Card Image Generator
Post by: Orange on December 12, 2016, 10:28:34 am
(http://cf.geekdo-images.com/images/pic3297374_lg.png)

Easy!  Thanks for this fun tool.
Title: Re: Dominion Card Image Generator
Post by: McGarnacle on December 12, 2016, 10:41:13 am

THIS IS AMAZING FOR IDIOTS LIKE ME OMG
Title: Re: Dominion Card Image Generator
Post by: AdrianHealey on December 12, 2016, 10:43:50 am
(http://cf.geekdo-images.com/images/pic3297374_lg.png)

Easy!  Thanks for this fun tool.

Splitpile potential imo
Title: Re: Dominion Card Image Generator
Post by: Doom_Shark on December 12, 2016, 08:40:15 pm
(http://cf.geekdo-images.com/images/pic3297374_lg.png)

Easy!  Thanks for this fun tool.

Fountain is already a card-shaped thing. Pick a different name and artwork.
Title: Re: Dominion Card Image Generator
Post by: LibraryAdventurer on December 12, 2016, 09:26:19 pm
Easy!  Thanks for this fun tool.

Fountain is already a card-shaped thing. Pick a different name and artwork.
Hey, this is cool artwork.  Fan cards can have whatever name the designer wants, and if he does change it, he can call it "Golden Fountain" to keep this picture.
Title: Re: Dominion Card Image Generator
Post by: Doom_Shark on December 13, 2016, 12:37:24 am
Easy!  Thanks for this fun tool.

Fountain is already a card-shaped thing. Pick a different name and artwork.
Hey, this is cool artwork.  Fan cards can have whatever name the designer wants, and if he does change it, he can call it "Golden Fountain" to keep this picture.

I apologize, my intention was not to sound rude. However, it is still a good idea for fan cards not to share names with official cards. At the time I posted that, I couldn't think of a way to change the name and keep the artwork, and tried to do something that turned out looking really stupid...
Title: Re: Dominion Card Image Generator
Post by: LibraryAdventurer on December 13, 2016, 01:26:16 am
Easy!  Thanks for this fun tool.

Fountain is already a card-shaped thing. Pick a different name and artwork.
Hey, this is cool artwork.  Fan cards can have whatever name the designer wants, and if he does change it, he can call it "Golden Fountain" to keep this picture.

I apologize, my intention was not to sound rude. However, it is still a good idea for fan cards not to share names with official cards. At the time I posted that, I couldn't think of a way to change the name and keep the artwork, and tried to do something that turned out looking really stupid...
I didn't think you sounded rude. I just kinda like the picture.
Title: Re: Dominion Card Image Generator
Post by: tristan on December 13, 2016, 03:13:18 am
(http://cf.geekdo-images.com/images/pic3297374_lg.png)

Easy!  Thanks for this fun tool.
Interesting idea. I fear that it is either too weak in Kingdoms with no other durations or crazily overpowered in Kingdoms with cheap durations.
Title: Re: Dominion Card Image Generator
Post by: AdrianHealey on December 13, 2016, 06:10:54 am
(https://s27.postimg.org/lhwahob2b/Schermafbeelding_2016_12_13_om_12_09_54.png)

So easy. But, euh, can we center the image?
Title: Re: Dominion Card Image Generator
Post by: ThetaSigma12 on December 13, 2016, 06:47:25 am
Nah, just call it headless elf.
Title: Re: Dominion Card Image Generator
Post by: AdrianHealey on December 13, 2016, 06:50:33 am
Theta solving problems like no big deal.

Could probably cost $4 and be a village, I think. No?
Title: Re: Dominion Card Image Generator
Post by: Violet CLM on December 13, 2016, 02:41:33 pm
So easy. But, euh, can we center the image?
Well, it is centered... that's exactly why you're running into that. You want it to be snapped to the top instead. This is still not the top priority--I'm busy readjusting text sizes and positions right now--but I acknowledge it's worth implementing eventually.
Title: Re: Dominion Card Image Generator
Post by: AdrianHealey on December 13, 2016, 03:04:56 pm
So easy. But, euh, can we center the image?
Well, it is centered... that's exactly why you're running into that. You want it to be snapped to the top instead. This is still not the top priority--I'm busy readjusting text sizes and positions right now--but I acknowledge it's worth implementing eventually.

Haha, I guess you are right. No problem, man. It's a-ma-zing.
Title: Re: Dominion Card Image Generator
Post by: Chris is me on December 14, 2016, 07:12:28 pm
Can we sticky this? We really need to sticky this.
Title: Re: Dominion Card Image Generator
Post by: Violet CLM on December 14, 2016, 11:57:51 pm
I greatly appreciate the thought, but if it's going to be stickied at all, wait until I've finished addressing some of the tips for improvement that have been posted :)
Title: Re: Dominion Card Image Generator
Post by: Nflickner on December 15, 2016, 06:44:58 pm
Can we sticky this? We really need to sticky this.

I agree :)
Title: Re: Dominion Card Image Generator v1.1
Post by: Violet CLM on December 16, 2016, 04:46:19 am
Version 1.1 released

(http://i.imgur.com/d4xYRku.jpg)
Fonts, icon positioning, text processing, shadows, and colors have been updated. Color schemes are now based on the Dominion Online images', since those seem to be the most consistent sources. Most worthy of concern is that newlines (read: pressing enter) are now much weaker than they were in 1.0, to allow for finer user control; that makes for some inconsistency with previously generated cards, but I did say that was a possibility. Note also in the Apprentice comparison above that this is now using Empires/rerelease rules: "+1 Card" and the like get bolded even when they are not the entire line. I haven't looked into the question of italics yet so don't try.

Same URL as before. (http://shemitz.net/static/dominion3/) Reload (forcefully) if changes don't seem to have applied.
Title: Re: Dominion Card Image Generator v1.1
Post by: McGarnacle on December 16, 2016, 11:48:07 am
This is really a fantastic tool!  :) Just one little thing you could add: How about a feature which would allow you to credit the artist in the bottom corner?
Title: Re: Dominion Card Image Generator v1.1
Post by: ThetaSigma12 on December 16, 2016, 01:18:46 pm
Wow, way better! There are, however, a few more things I'dd suggest adding:
- As McGarnacle said, an Artist/Creator credit box in the bottom.
- This might be my number one thing. The templates still look kinda off. I think you just recolored them all, so it looks really off (to me). Now take this with a grain of salt, the templates I see and use might be off while yours are actually right, but I'd still suggest using LFN's whenever possible.
- Selective Italics/Bold, but that only affects 1% of cards so no biggie.
- Actually, this is my #1 thing. The (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) in the middle need to have a smaller number in them. It's possibly the #1 thing that people get tripped up on.
Title: Re: Dominion Card Image Generator v1.1
Post by: Violet CLM on December 16, 2016, 07:12:00 pm
I did take a look at the card templates you sent me and they weren't seriously usable. They were half the size and had inconsistent proportions, inconsistent positions, and inconsistent fill patterns (read: clone brush usage). They weren't even layered. There's no way to use them that doesn't involve scrapping all but one and starting from scratch, but at a smaller resolution, with an unremovable price coin icon, and with no obvious benefits to make up for it.

I am sympathetic to the argument that I should be using the colors people are most familiar with from other templates, even though those have been warped by printing and later scanning, rather than the ones that I think are most likely to be canonical, but using those particular images is not the way to get that result.

I will be looking at the inline icons some more. I know official cards are not consistent about their sizing, but because this is a program I do actually need a consistent rule, so I expect I'll look at a bunch of Empires cards (because they use the most updated style) and figure out what looks right from there. The most important bit is to get the $ symbol in "+$" to turn into a coin icon and the + to be drawn in bold, but resizing can happen while I'm looking at that part of the code too.
Title: Re: Dominion Card Image Generator v1.1
Post by: ThetaSigma12 on December 16, 2016, 09:34:46 pm
I did take a look at the card templates you sent me and they weren't seriously usable. They were half the size and had inconsistent proportions, inconsistent positions, and inconsistent fill patterns (read: clone brush usage). They weren't even layered. There's no way to use them that doesn't involve scrapping all but one and starting from scratch, but at a smaller resolution, with an unremovable price coin icon, and with no obvious benefits to make up for it.

I am sympathetic to the argument that I should be using the colors people are most familiar with from other templates, even though those have been warped by printing and later scanning, rather than the ones that I think are most likely to be canonical, but using those particular images is not the way to get that result.

I will be looking at the inline icons some more. I know official cards are not consistent about their sizing, but because this is a program I do actually need a consistent rule, so I expect I'll look at a bunch of Empires cards (because they use the most updated style) and figure out what looks right from there. The most important bit is to get the $ symbol in "+$" to turn into a coin icon and the + to be drawn in bold, but resizing can happen while I'm looking at that part of the code too.
Hmm, I didn't realize the templates I sent you didn't work. Sorry about that, I'll still see what I can do. The ones you have are mainly fine, I guess it's just my arrogant preference  :P.

It just needs the number smaller in the icon, compare the 6(http://wiki.dominionstrategy.com/images/thumb/8/81/Debt.png/18px-Debt.png) in the capital you posted and the official version.
Title: Re: Dominion Card Image Generator v1.1
Post by: Doom_Shark on December 17, 2016, 10:55:33 am
A little feedback:
Will repeat what has been said before about sizing of numbers in the coin values in a card's effect. I will point out that additionally, multi-character costs such as overpay and cards not in the supply don't size well to fit within the coin symbol. For examples of both, see the following:

http://shemitz.net/static/dominion3/?title=Armorer&description=Gain%20an%20action%20or%20reaction%20card%20costing%20up%20to%20%244%2C%20putting%20it%20on%20top%20of%20your%20deck.%0A-%0AWhen%20you%20buy%20this%2C%20you%20may%20overpay%20for%20it.%20If%20you%20do%2C%20you%20may%20gain%20a%20card%20costing%20less%20than%20the%20amount%20you%20paid%20for%20this.&type=Action&price=%244%2B&preview=&picture=https%3A%2F%2Fs-media-cache-ak0.pinimg.com%2Foriginals%2F5f%2F33%2F90%2F5f339056e3eb90157409bf4b61dbe380.jpg&color0=0&color1=0 (https://shemitz.net/static/dominion3/?title=Armorer&description=Gain%20an%20action%20or%20reaction%20card%20costing%20up%20to%20%244%2C%20putting%20it%20on%20top%20of%20your%20deck.%0A-%0AWhen%20you%20buy%20this%2C%20you%20may%20overpay%20for%20it.%20If%20you%20do%2C%20you%20may%20gain%20a%20card%20costing%20less%20than%20the%20amount%20you%20paid%20for%20this.&type=Action&price=%244%2B&preview=&picture=https%3A%2F%2Fs-media-cache-ak0.pinimg.com%2Foriginals%2F5f%2F33%2F90%2F5f339056e3eb90157409bf4b61dbe380.jpg&color0=0&color1=0)
Title: Re: Dominion Card Image Generator v1.1
Post by: ThetaSigma12 on December 22, 2016, 01:56:10 pm
The middle text should be Times New Roman FYI.

Also, if there's room it should give some extra room above and below dividing lines if there is space.
Title: Re: Dominion Card Image Generator v1.1
Post by: Violet CLM on December 22, 2016, 04:12:51 pm
I haven't gotten the impression that the amount of vertical space taken up by a dividing line is a constant, so I'm mostly leaving that to the domain of additional line breaks.

Maybe I should post an (unordered) todo list.

Not on the todo list is completely arbitrary font resizing like on Caravan Guard. There comes a time you have to take things to a genuine image editor program.
Title: Re: Dominion Card Image Generator v1.1
Post by: MattLee on December 24, 2016, 01:09:20 am
Thank you so much for making this! Ive been lurking on the forums for a long while and just printing off other people cards, but with this I can finally try out my own ideas  :D
Title: Re: Dominion Card Image Generator
Post by: werothegreat on January 10, 2017, 08:59:02 am
Can we sticky this? We really need to sticky this.

I concur on this, and am mainly posting to bump it so it stays near the top regardless.
Title: Re: Dominion Card Image Generator
Post by: Gubump on January 10, 2017, 12:04:04 pm
Can we sticky this? We really need to sticky this.

I concur on this, and am mainly posting to bump it so it stays near the top regardless.

I also agree.
Title: Re: Dominion Card Image Generator v1.1
Post by: Haddock on January 10, 2017, 12:35:14 pm
I've never actually made a fan card, but yeah I agree that this should be a sticky.
Title: Re: Dominion Card Image Generator
Post by: ThetaSigma12 on January 10, 2017, 05:21:30 pm
I greatly appreciate the thought, but if it's going to be stickied at all, wait until I've finished addressing some of the tips for improvement that have been posted :)
Title: Re: Dominion Card Image Generator v1.1
Post by: werothegreat on January 26, 2017, 11:08:29 pm
Any news on the Landscape mode front?
Title: Re: Dominion Card Image Generator v1.1
Post by: Violet CLM on February 01, 2017, 03:21:55 am
Okay, I guess it's Version 1.2 time. I added an Art Credit field and a Ruins color scheme, shifted some other shades around a little bit, and provided a new menu in the bottom left for choosing which template type to use. Landscape mode is in.

Other stuff remains woefully unfinished. Sorry. I've not been doing so hot lately, so I thought I might as well at least put this stuff out, even though the icon code needs work, because imperfect landscape cards are better than none. :)
Title: Re: Dominion Card Image Generator v1.2
Post by: Gubump on February 01, 2017, 10:12:16 am
It takes forever to load, now.  :'(
Title: Re: Dominion Card Image Generator v1.2
Post by: Gubump on February 01, 2017, 02:29:32 pm
NVM, it works now. I just needed to restart my browser.
Title: Re: Dominion Card Image Generator v1.2
Post by: Neirai the Forgiven on February 22, 2017, 10:36:39 am
Amazing! Thanks for this. I'm working on a homebrew Expack and was losing sleep mulling over how to get the layout done, since I cannot into art.
Title: Re: Dominion Card Image Generator v1.2
Post by: McGarnacle on March 03, 2017, 01:28:38 pm
All my card links broke. Is the generator just going through some changes?
Title: Re: Dominion Card Image Generator v1.2
Post by: Asper on March 03, 2017, 03:12:28 pm
I'm pleasantly surprised at the quality this generator delivers. Only tried it out now, but wow. If I was able to place images anywhere in the frame, I'd use it over my own any time. Well, maybe not to mock up cards in other languages, as the auto-bolding only seems to work for certain expressions (which also appears to mean I can't define my own). Apart from that, it's very impressive. Chapeau.
Title: Re: Dominion Card Image Generator v1.2
Post by: MattLee on March 03, 2017, 11:55:06 pm
All my card links broke. Is the generator just going through some changes?

Mine too, lost a few dozen mocked up cards :(
Title: Re: Dominion Card Image Generator v1.2
Post by: Violet CLM on March 13, 2017, 12:03:32 am
All my card links broke. Is the generator just going through some changes?
I'm sorry, I only just now saw this post. I tried some of the links from the first post in this thread and they seemed to be working... can you give me an example of a broken link that used to work but now doesn't?

(If they've since started working again, I would guess it was a temporary (and local?) DNS problem, since I switched my domain over to https at around the time of those posts and maybe the switching off of the http version happened for you before the redirect started working.)
Title: Re: Dominion Card Image Generator v1.2
Post by: McGarnacle on March 13, 2017, 07:44:49 am
All my card links broke. Is the generator just going through some changes?
I'm sorry, I only just now saw this post. I tried some of the links from the first post in this thread and they seemed to be working... can you give me an example of a broken link that used to work but now doesn't?

(If they've since started working again, I would guess it was a temporary (and local?) DNS problem, since I switched my domain over to https at around the time of those posts and maybe the switching off of the http version happened for you before the redirect started working.)

Hi Violet, thanks for helping out! Here is one of the malfunctioning links http://shemitz.net/static/dominion3/?title=Countess&description=Choose%20one%3B%20Trash%20a%20card%20from%20your%20hand%20and%20gain%20a%20card%20costing%20up%20to%20%241%20more%20than%20the%20trashed%20card%2C%20or%20%2B%20%242%20and%20put%20a%20card%20from%20your%20hand%20on%20top%20of%20your%20deck.&type=Action&price=%243&preview=&picture=https%3A%2F%2Fs-media-cache-

It added % btwn every word and then did not drop them, plus the image doesn't work.
Title: Re: Dominion Card Image Generator v1.2
Post by: Violet CLM on March 13, 2017, 11:25:31 am
Okay, I see what's going on. For a simple, user-side fix you can make any of your links work again by replacing http at the beginning with https, e.g. https://shemitz.net/static/dominion3/?title=Countess&description=Choose%20one%3B%20Trash%20a%20card%20from%20your%20hand%20and%20gain%20a%20card%20costing%20up%20to%20%241%20more%20than%20the%20trashed%20card%2C%20or%20%2B%20%242%20and%20put%20a%20card%20from%20your%20hand%20on%20top%20of%20your%20deck.&type=Action&price=%243&preview=&picture=https%3A%2F%2Fs-media-cache-

This evening I'll see if there's something I can do on my end to make the old links work so you don't have to do that editing.

That said, you don't have a full URL for an image in that link, so I don't think that one's on me. You can see for yourself that it's just
Code: [Select]
https://-media-cache
Title: Re: Dominion Card Image Generator v1.2
Post by: SettingFraming on March 13, 2017, 11:13:31 pm
I just wanted to pop in and say that this is a really great tool you've built.

Seems darn near feature complete, and excellently easy to use.
Title: Re: Dominion Card Image Generator v1.2
Post by: Violet CLM on March 14, 2017, 07:49:50 pm
Thanks :)


Links to the old http domain should be working now, though your browser cache may get in the way and assume the old redirect style for specific urls. Try opening one of the links in a private/incognito window to prove the point until your browser catches on that something has changed.
Title: Re: Dominion Card Image Generator v1.2
Post by: MattLee on March 15, 2017, 01:07:45 am
Thanks :)


Links to the old http domain should be working now

Yay! Thanks a bunch :D
Title: Re: Dominion Card Image Generator v1.2
Post by: McGarnacle on March 15, 2017, 09:49:01 am
Thanks :)


Links to the old http domain should be working now

Yay! Thanks a bunch :D

Me too. Great Job!
Title: Re: Dominion Card Image Generator v1.2
Post by: Neirai the Forgiven on September 08, 2017, 01:28:40 pm
Hi, Violet,
Sorry if this has been asked before, but I was hoping that you could shed some light on the following:
1) There's a 'size' parameter on the URL, but I don't know what options I can put in there, and if so, what they do. I was kind of hoping to be able to get a card-sized image out (or maybe I'm too dumb to set my printer dpi to scale down the image while maintaining high quality.)

2) Is there any possibility that you will add the ability to have a second black-and-white image import for a set icon? Of course I can always paint one in. :)
Title: Re: Dominion Card Image Generator v1.2
Post by: Violet CLM on September 09, 2017, 12:02:14 am
Sorry to get your hopes up with the "Size" parameter, it's just really poorly named. It actually controls whether your card is a card or an event or a weird double-sided thingy. When I tried printing, I fit multiple cards on a single page (six IIRC?) and made sure the page was 8.5x11 so I could easily derive the card sizes from there. I don't know what software or printer you're working, but in pixel terms the cards are about as big as the biggest scans I was finding.

Set icons are fairly low down the priority list but they're certainly something that should happen eventually. The trouble is I just haven't had much interest in working on this in some time. I'd open source it (I mean, it's already open source by virtue of being a static document, but I could do so explicitly) but I don't know if there's anyone around these parts who'd try picking it up.
Title: Re: Dominion Card Image Generator v1.2
Post by: Neirai the Forgiven on September 09, 2017, 11:37:48 am
Makes sense to me, thanks for the reply.

I'm currently working on a python-based randomizer that supports custom cards. The dream would be to have a similar renderer to your system baked into it.
Title: Re: Dominion Card Image Generator v1.2
Post by: Neirai the Forgiven on October 13, 2017, 11:55:52 am
So, I'm like really not an art/tech guy... but what's the output DPI like? I'm hoping for a 300 dpi output, at least.
Title: Re: Dominion Card Image Generator v1.2
Post by: Violet CLM on October 15, 2017, 03:18:10 am
Just about 600 by my math. Of course the card templates themselves are thrown together from various scans, so they're going to be a bit blurry, but that's the resolution your main images and text should be rendered at.
Title: Re: Dominion Card Image Generator v1.2
Post by: Neirai the Forgiven on October 15, 2017, 06:36:28 pm
Fantastic! Thanks for the reply.
Title: Re: Dominion Card Image Generator v1.3
Post by: Violet CLM on October 23, 2017, 12:36:39 pm
I've updated (https://shemitz.net/static/dominion3/) the generator to include Night cards and Heirloom banners (from Nocturne). The generator treats any color whose R/G/B intensities sum up to 1.5 or less as a dark color and applies Night rules to it (white text, different blending). Dark colors are available in any of the three card shapes (Portrait/Landscape/Double); heirloom banners are available only in Portrait and Landscape. Per usual, if you don't see the proper fields, reload the page to refresh your cache.

Quick example (https://shemitz.net/static/dominion3/?title=Predator&description=Trash%20a%20card%0Ayou%20have%20in%20play.&type=Night%20-%20Shelter&credit=Illustration%3A%20kaber13&price=%241&preview=&picture=https%3A%2F%2Fimg00.deviantart.net%2Fc346%2Fi%2F2012%2F188%2Fe%2F2%2Fbe_ware_the_wolf_at_night_by_kaber13-d55xbjq.jpg&color0=10&color1=8&size=0)
Title: Re: Dominion Card Image Generator v1.3
Post by: Violet CLM on October 25, 2017, 02:00:50 pm
So, hmm. This is annoying. Events and Landmarks are great because they use the same border colors (all images taken from Dominion's online version):
(https://dominion.games/images/cards/templates/event.png) (https://dominion.games/images/cards/templates/landmark.png)

But now we've got these three:
(https://dominion.games/images/cards/templates/boon.png) (https://dominion.games/images/cards/templates/hex.png) (https://dominion.games/images/cards/templates/state.png)
For these, the borders are also recolored, not just the background panels. And the State template has some pretty inconsistent use of color compared to the rest too. This may take a little longer to figure out, sorry, unlike the same-day Night and Heirloom updates.
Title: Re: Dominion Card Image Generator v1.3
Post by: Neirai the Forgiven on October 25, 2017, 03:19:46 pm
VioletCLM, while you're working on this (many, many, many thanks btw), there's a bug with heirloom banners and long text blocks as seen here:
https://shemitz.net/static/dominion3/?title=Mammon&description=%243%0AWhile this is in play%2C when you buy a card%2C put it on your Mammon mat. %0AIf it is a Curse%2C don't draw cards at the end of your turn. Instead%2C take all the cards from your Mammon mat and take another turn.&type=Treasure&credit=Illustration%3A Jan Boruta ANTIQUITIES&price=%244&preview=%243&type2=I can't call this Idol anymore&picture=https%3A%2F%2Fi.imgur.com%2Fmecyg3D.png&color0=1&color1=0&size=0 (https://shemitz.net/static/dominion3/?title=Mammon&description=%243%0AWhile this is in play%2C when you buy a card%2C put it on your Mammon mat. %0AIf it is a Curse%2C don't draw cards at the end of your turn. Instead%2C take all the cards from your Mammon mat and take another turn.&type=Treasure&credit=Illustration%3A Jan Boruta ANTIQUITIES&price=%244&preview=%243&type2=I can't call this Idol anymore&picture=https%3A%2F%2Fi.imgur.com%2Fmecyg3D.png&color0=1&color1=0&size=0)
Title: Re: Dominion Card Image Generator v1.3
Post by: Neirai the Forgiven on November 10, 2017, 02:34:15 pm
Additional whining:
The Event-type landscape card rendering doesn't support dark backgrounds/white text.
Title: Re: Dominion Card Image Generator v1.3
Post by: Violet CLM on November 16, 2017, 02:57:26 pm
Oh, I fixed both of those a while back and forgot to reupload, whoops! Fixed now. Anyway, now that the full Nocturne card list has been released I don't have to worry more about any new unexpected surprises, so I guess now's the time to really think about those stupid State/Hex/Boon cards.
Title: Re: Dominion Card Image Generator v1.3
Post by: ThetaSigma12 on November 16, 2017, 04:03:07 pm
What's wrong with using the ShuffleIT templates? That way it's consistent with the official implementation and you don't need to worry about card colour differences.
Title: Re: Dominion Card Image Generator v1.3
Post by: Violet CLM on November 16, 2017, 11:33:31 pm
The issue is then States/Hexes/Boons stop being first-class citizens and have to be top-level choices instead, so you have to choose between portrait, landscape, state, hex, or boon. And that's awkward. Alternatively they're items in the dropdown color lists like everything else, but those particular choices have hardcoded effects on the borders which cannot be replicated in CUSTOM. So far the named colors--Action, Treasure, etc.--are nothing more than convenience value, and reproducing their colors as CUSTOM colors would give you 100% the same effect, so I'd like to be able to keep that.
Title: Re: Dominion Card Image Generator v1.3
Post by: NoMoreFun on December 14, 2017, 04:52:01 am
Why hasn't this been sticky'd? (+bump)
Title: Re: Dominion Card Image Generator v1.3
Post by: spiralstaircase on December 14, 2017, 06:57:35 am
This is a great tool - thanks for making it!

As a feature suggestion, would it be possible to let us specify an expansion symbol?
Title: Re: Dominion Card Image Generator v1.3
Post by: Supernova888 on May 20, 2018, 08:54:42 pm
I just wanted to say, this tool is absolutely incredible. Finding this made my day. It's so simple and intuitive to use, I'm absolutely loving bringing my custom cards to life. Thank you so much for this.
Title: Re: Dominion Card Image Generator v1.3
Post by: Asper on May 21, 2018, 07:10:16 am
Why hasn't this been sticky'd? (+bump)

Agreed. It's a great tool and this thread should be sticky.
Title: Re: Dominion Card Image Generator v1.3
Post by: ClouduHieh on May 22, 2018, 01:47:36 am
It’s really cool. It’s awesome!

I have an iPad and there’s photos on my ipad I wanted to use for the cards. But there doesn’t seem to be anyway to add them.

Also I’m making travelers and there’s no way to put the big arrow on it.
Title: Re: Dominion Card Image Generator v1.3
Post by: Violet CLM on May 22, 2018, 02:37:39 am
I have an iPad and there’s photos on my ipad I wanted to use for the cards. But there doesn’t seem to be anyway to add them.
Images must be hosted somewhere on the internet. This is in order for you to be able to use the page's URL parameters as a full definition of the card.
Quote
Also I’m making travelers and there’s no way to put the big arrow on it.
Undocumented but really simple: the big arrow shows up if the card's type includes "Traveller"
Title: Re: Dominion Card Image Generator v1.3
Post by: ClouduHieh on May 23, 2018, 12:53:02 am
I did try to get the image from the internet.

And it still didn’t work.

Http://en.m.wikipedia.org/wiki/file:mad_scientist.svg

That’s the info it gave me for the picture and it was still blank.
Title: Re: Dominion Card Image Generator v1.3
Post by: Violet CLM on May 23, 2018, 12:57:30 am
That's not the image URL. This is:

https://upload.wikimedia.org/wikipedia/commons/a/ae/Mad_scientist.svg
Title: Re: Dominion Card Image Generator v1.3
Post by: ClouduHieh on May 23, 2018, 01:11:13 am
Wow it actually worked.

I’m sorry I doubted you. This is the first time I’ve ever done anything like this. So I got frustrated.
Thank you for the help hopefully I’ll be able to figure it out on my own the next time.
Title: Re: Dominion Card Image Generator v1.3
Post by: ClouduHieh on May 23, 2018, 01:55:40 am
I’m just trying to figure out you got the url? I can’t seem to figure it out?
It doesn’t seem to just give you that info anywhere. I tried doing that for another one. By putting everything except the last part and it didn’t work. Mickey hot springs 2008.jpg nothing at all.

Bummer
Title: Re: Dominion Card Image Generator v1.3
Post by: ClouduHieh on May 23, 2018, 02:17:05 am
I just figured it out. I got hot springs on my own too. Thank you so much.
Title: Re: Dominion Card Image Generator v1.3
Post by: Neirai the Forgiven on May 25, 2018, 09:38:57 am
Hi Violet! Is there a way to make italicized text with the tool that I'm not aware of yet? For Setup rules?

Thank you for all that you've done for this community and for me by making and maintaining this tool. I think I would have been totally demoralized by my lack of card creating ability by now if it were not for you.
Title: Re: Dominion Card Image Generator v1.3
Post by: Commodore Chuckles on May 26, 2018, 11:52:32 am
Awesome tool! Sorry if this has been asked before, but is there a way to make Expansion icons?
Title: Re: Dominion Card Image Generator v1.4
Post by: Violet CLM on August 17, 2018, 09:31:43 pm
Very long overdue update: Boons, Hexes, and States are now supported. In order for them to be available I had to change a number of things under the hood, so there's a new EXTRA CUSTOM option which takes full advantage of those additions, letting you go more wild than ever (https://shemitz.net/static/dominion3/?title=Ifrit&description=When%20you%20trash%20a%20card%2C%20gain%20a%0A%0Acheaper%20card%20that%20is%20not%20a%20Treasure.&type=Demon&credit=&price=%245&preview=&type2=&picture=http%3A%2F%2Fapologeticspress.org%2Fuser_images%2FDiscovery%2Fimage%2Fmagazine%2F2012%2F04-12%2FBurning-in-Fire-123rf-11551751_xxl.png&c0.0.0=0&c0.0.1=0&c0.0.2=0.4&c0.1.0=1&c0.1.1=0&c0.1.2=0&c0.2.0=1.45&c0.2.1=0.35&c0.2.2=0.8&c0.3.0=1.25&c0.3.1=0.25&c0.3.2=0&color1=0&size=1).

I also added "coffer" to the list of keywords that make for bolded lines when appropriate, alongside "card," "buy," and "action." No other updates at the moment, though obviously there's still more to be done.
Title: Re: Dominion Card Image Generator v1.4
Post by: Asper on August 22, 2018, 02:12:42 pm
Ah, keywords,that explains why I couldn't get the German translations of my cards to look right.
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on September 24, 2018, 03:42:59 am
Quick update for Renaissance: Added Artifacts and Projects to the dropdown list of colors (though you'll forgive me if I don't provide any examples), and added "villager" to the list of bolding keywords.
Title: Re: Dominion Card Image Generator v1.5
Post by: Umadin on September 26, 2018, 02:15:21 pm
+$1 doesn’t seem to work in the card description for me although its the standard dominion format for plus coin.

Also the number doesn’t seem to line up over the cost (See my brothel thread in Variants and Fan Cards for an example)

But damn is this tool legit man.  Great fucking job...
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on September 26, 2018, 02:50:21 pm
Yeah, that's a major issue with the current state of the text parsing currently: the special symbols ($, @, etc.) are not recognized when preceded by most characters. You have to write "+ $1" instead of "+$1" until I get around to overhauling things.

As for lining up, if you mean vertically, unfortunately different browsers just aren't very consistent with their text rendering. Desktop Chrome on Windows is what I do most of my testing in, and that's where the text will come out looking the most authentic. Other browsers will display things at subtly different sizes, different offsets, and so on, in ways that are not ideal but generally close enough.
Title: Re: Dominion Card Image Generator v1.5
Post by: ClouduHieh on September 29, 2018, 04:27:45 pm
Shemitz doesn’t work anymore. It keeps saying someone may be using it to view your information?
Title: Re: Dominion Card Image Generator v1.5
Post by: Doom_Shark on September 29, 2018, 04:46:19 pm
Do you have a timeline for updating this for renaissance or is it more of a, "I'll get to this eventually," type of thing?
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on September 29, 2018, 05:30:59 pm
Shemitz doesn’t work anymore. It keeps saying someone may be using it to view your information?
I lost track of the calendar and let my security certificate expire, sorry. Should be working again now though.

Do you have a timeline for updating this for renaissance or is it more of a, "I'll get to this eventually," type of thing?
Read a few posts up: I already added support for all known new Renaissance mechanics before they were even previewed.
Title: Re: Dominion Card Image Generator v1.5
Post by: Doom_Shark on September 29, 2018, 11:33:12 pm
Do you have a timeline for updating this for renaissance or is it more of a, "I'll get to this eventually," type of thing?
Read a few posts up: I already added support for all known new Renaissance mechanics before they were even previewed.

Ok, I missed that post. Turns out bookmarking the page keeps it on an older version, will have to update the bookmark.
Title: Re: Dominion Card Image Generator v1.5
Post by: ClouduHieh on October 04, 2018, 06:05:50 pm
Yeah works now thanks
Title: Re: Dominion Card Image Generator v1.5
Post by: Fly-Eagles-Fly on October 04, 2018, 06:43:16 pm
Thanks so much, just joined the forum and have been using this tool for the last few days. It is awesome! The only problem is I have to come up with cards to make with it...  :P
Title: Re: Dominion Card Image Generator v1.5
Post by: Fly-Eagles-Fly on October 11, 2018, 01:55:13 pm
Can anyone tell me why you would want to use this template?
(https://i.imgur.com/S4Hrkax.jpg)
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on October 11, 2018, 02:07:03 pm
Basically that template is a solution in search of a problem. It's an expression of confidence that someday someone will have the perfect idea that can best (or only) be expressed by a double-sided card.

My original use for it was Duration cards where you make a choice the turn you play it which affects what you get next turn, so there's no danger of forgetting which option you chose. Later there was a topic about "Adaptive" cards, and I put forward a couple (https://shemitz.net/static/dominion3/?title=Aristocrat%20%CE%B1&title2=Aristocrat%20%CE%B2&description=Reveal%20the%20top%203%20cards%20of%20your%20deck.%0APut%20all%20revealed%20Treasures%20into%20your%20hand%2C%20and%20put%20the%20rest%20back%20in%20any%20order.&description2=Reveal%20the%20top%203%20cards%20of%20your%20deck.%0APut%20all%20revealed%20Actions%20into%20your%20hand%2C%20and%20put%20the%20rest%20back%20in%20any%20order.&type=Action&credit=Illustration%3A%20Hogarth&price=%243&preview=%243&type2=Action&picture=http%3A%2F%2Fwww.radford.edu%2Frbarris%2Fart216upd2012%2FLESSING_ART_10394904.jpg&color0=0&color1=0&size=2) of examples (https://shemitz.net/static/dominion3/?title=Perennial%20%CE%B1&title2=Perennial%20%CE%B2&description=2%25%0A-%0AWhen%20you%20buy%20this%2C%20flip%0Ayour%20Perennial%20%CE%B1%2F%CE%B2%20token.&description2=%241%0A-%0AWhen%20you%20buy%20this%2C%20flip%0Ayour%20Perennial%20%CE%B1%2F%CE%B2%20token.&type=Victory&credit=Illustration%3A%20landinstitute.org&price=%242&preview=%242&type2=Treasure&picture=https%3A%2F%2Flandinstitute.org%2Fwp-content%2Fuploads%2F2016%2F08%2Fperennial-wheat-700x370.jpg&color0=2&color1=2&size=2)... IIRC, the idea was that the first time you gained (or acquired by Masquerade, Traveler, etc.) one such card you had to place a two-sided alpha/beta token on the supply pile, choosing which side was face-up, and for the rest of the game, that token's orientation locked you into only using the alpha side of that card or only using the beta side. But I'm sure there are more possibilities out there.
Title: Re: Dominion Card Image Generator v1.5
Post by: Fly-Eagles-Fly on October 11, 2018, 02:46:22 pm
I see. I actually kind of like Perennial.
Title: Re: Dominion Card Image Generator v1.5
Post by: NoMoreFun on October 19, 2018, 03:32:31 am
Could you add a feature to allow any word to be bolded after +1 like Card/Action/Buy/Villager/Coffers?
Title: Re: Dominion Card Image Generator v1.5
Post by: Asper on October 19, 2018, 01:02:54 pm
Could you add a feature to allow any word to be bolded after +1 like Card/Action/Buy/Villager/Coffers?
That would indeed be awesome. Among other things, it would allow non-English mockups.
Also, +1 Pizza.
Title: Re: Dominion Card Image Generator v1.5
Post by: Doom_Shark on October 19, 2018, 09:32:09 pm
Could you add a feature to allow any word to be bolded after +1 like Card/Action/Buy/Villager/Coffers?
That would indeed be awesome. Among other things, it would allow non-English mockups.
Also, +1 Pizza.

Yes! Silver border dominion!
Title: Re: Dominion Card Image Generator v1.5
Post by: NoMoreFun on November 10, 2018, 05:28:48 pm
Can you put a "clear text" button on the image url box? Maybe it's just me but my computer really can't handle the long urls generated by google image search when I try to replace one url with another (eg I'm making a bunch of cards)
Title: Re: Dominion Card Image Generator v1.5
Post by: ThetaSigma12 on November 10, 2018, 06:18:54 pm
Also, adding the option for Italics would be nice, last I checked there was no way properly format things like (This stays in play.) and (This is not in the Supply.).
Title: Re: Dominion Card Image Generator v1.5
Post by: Rabenkind on November 10, 2018, 07:18:55 pm
Also, It where cool if you could add, that you can make the traveler arrow without having the traveler type.
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on November 10, 2018, 08:47:08 pm
I'm in the gradual process of replacing all the code for text/icon drawing, and italics are a part of that. If I can get this to work, there'll be a rich text editor instead of the page deciding for you whether this text should be bold but this other text shouldn't, etc. Legacy URLs will be converted to rich text. But that's not done yet, and I'm not going to retrofit italics into the old code in the meantime.

I'm not sure I understand the "clear text" ask. Is Ctrl+A, Backspace not sufficient?

Traveler arrow... I guess that could happen? Is this something you've wanted to be able to do?
Title: Re: Dominion Card Image Generator v1.5
Post by: ClouduHieh on November 13, 2018, 07:14:17 pm
I’ve made some travelers for my snowline expansion. I’ve added  ⬆️ Where it says action-traveler. But it would be nice if it had the same giant arrow under the text.

You currently have 3 differently shaped cards on the generator what if you made a forth just for travelers.
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on November 13, 2018, 07:42:52 pm
Oh, I might understand what you're asking about? The official Dominion cards only ever use the spelling "traveller," so my generator reacts to that spelling by drawing the giant arrow. You're using the spelling "traveler" and therefore not getting the arrow. But now that you point it out, it should probably accept either spelling.
Title: Re: Dominion Card Image Generator v1.5
Post by: Fly-Eagles-Fly on November 13, 2018, 09:47:35 pm
Another thing to fix would be when you have a card with four types, it would be nice to have it go to a second line.
Title: Re: Dominion Card Image Generator v1.5
Post by: King Leon on November 14, 2018, 02:14:21 am
Can you fix the rendering of starred costs (like Peddler's $8*)?
It looks somewhat off.
Title: Re: Dominion Card Image Generator v1.5
Post by: Rabenkind on November 14, 2018, 07:44:45 pm
I want to use it in German and it would be nice if I can get the arrow just with ticking a box so that I can write the German word.
Title: Re: Dominion Card Image Generator v1.5
Post by: Doom_Shark on November 14, 2018, 08:33:25 pm
Can you fix the rendering of starred costs (like Peddler's $8*)?
It looks somewhat off.

I'm in the gradual process of replacing all the code for text/icon drawing
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on November 21, 2018, 12:34:38 pm
I want to use it in German and it would be nice if I can get the arrow just with ticking a box so that I can write the German word.
Ah, other languages are a good point, thanks for reminding me.

Intuitively it seems like it should be possible to have this tool support mats with text as well, now that we have two different examples (Coffers and Villagers) and know what's constant and what's variable. Unfortunately, judging just (http://wiki.dominionstrategy.com/images/b/bf/Coffers.jpg) by the images (http://1828/1374) on the dominionstrategy wiki, one of the variable things appears to be the dimensions, which can't be right. Look at this:
(https://i.imgur.com/f5HzPiG.jpg)
That's the two mat images superimposed and resized to use the same dimensions. The banners line up perfectly, which is nice; the text isn't quite aligned or sized consistently, but that's not a big deal. What's bothering me is that the Coffers mat is significantly wider than the Villagers mat. Is this right? Does Renaissance include a double mat that just hasn't been scanned onto the wiki, and if so, is that one's Coffers side narrower than the Guilds mat? Somebody with a physical copy of the game help me out here, because these images are inconsistent and I don't know what to do with them.
Title: Re: Dominion Card Image Generator v1.5
Post by: ClouduHieh on November 21, 2018, 01:59:43 pm
A friend of mine just got his pre-ordered version 2 days ago. And in renaissance the 2 mats are combined. Into one mat.

The only problem I have with the mat is that if it gets bumped that you might lose track of how many coffers and villagers you have considering that you use the coin tokens for both.
Title: Re: Dominion Card Image Generator v1.5
Post by: MrHiTech on November 23, 2018, 09:38:16 am
Can you make 3 or 4 colored banners?
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on November 23, 2018, 01:49:46 pm
A friend of mine just got his pre-ordered version 2 days ago. And in renaissance the 2 mats are combined. Into one mat.
Okay. Are they the same size as one another? Are they narrower than the original Coffers mat? What are their actual dimensions compared to cards?
Title: Re: Dominion Card Image Generator v1.5
Post by: Commodore Chuckles on November 23, 2018, 10:54:20 pm
Can you make 3 or 4 colored banners?

No official card has more than 2 colors, so no.
Title: Re: Dominion Card Image Generator v1.5
Post by: ClouduHieh on November 24, 2018, 12:22:31 am
They might be a little bigger than 2 cards combined. And I wouldn’t know how big the original coffer mats are. I just have the original guilds/cornucopia
Title: Re: Dominion Card Image Generator v1.5
Post by: Kudasai on November 24, 2018, 05:15:00 pm
I want to use it in German and it would be nice if I can get the arrow just with ticking a box so that I can write the German word.
Ah, other languages are a good point, thanks for reminding me.

Intuitively it seems like it should be possible to have this tool support mats with text as well, now that we have two different examples (Coffers and Villagers) and know what's constant and what's variable. Unfortunately, judging just (http://wiki.dominionstrategy.com/images/b/bf/Coffers.jpg) by the images (http://1828/1374) on the dominionstrategy wiki, one of the variable things appears to be the dimensions, which can't be right. Look at this:
(https://i.imgur.com/f5HzPiG.jpg)
That's the two mat images superimposed and resized to use the same dimensions. The banners line up perfectly, which is nice; the text isn't quite aligned or sized consistently, but that's not a big deal. What's bothering me is that the Coffers mat is significantly wider than the Villagers mat. Is this right? Does Renaissance include a double mat that just hasn't been scanned onto the wiki, and if so, is that one's Coffers side narrower than the Guilds mat? Somebody with a physical copy of the game help me out here, because these images are inconsistent and I don't know what to do with them.

I can confirm that the Coffers mat is clipped equally on both the left and right side to fit the size of the Villagers mat. In fact, for the overlay you have, if you clip the extra bits on the Coffers mat, you'll end up with exactly what is printed in Renaissance. So your ratios are spot on, but if you also need some measurements, here they are:

-Overall Coffers/Villagers Mat: Length: 12.79cm, Width: 8.33cm.

-Individual Coffers and Villagers Mats: Length: 7.86cm, Width: 5.79cm.

Measurement Notes: These were measured using inches with 1/32 precision and then converted to centimeters using a 2.54cm:1in ratio.

Layout: The Coffers and Villagers Mats are both essentially rotated 90 degrees and set one on top of the other to fit into the overall mat. So the lengths of both individual Coffers and Villagers Mats are slightly smaller than the overall width. The combined width of the Coffers and Villagers Mats is slightly smaller than the overall length.
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on November 24, 2018, 06:23:09 pm
That's exactly the sizing information I was looking for, thanks. The discrepancy between lengths and widths was a little confusing, but I see here (https://boardgamegeek.com/image/4419285/dominion-renaissance) that there's some significant margin space between them to mark player color, so that makes sense.
Title: Re: Dominion Card Image Generator v1.5
Post by: Kudasai on November 25, 2018, 03:08:58 pm
That's exactly the sizing information I was looking for, thanks. The discrepancy between lengths and widths was a little confusing, but I see here (https://boardgamegeek.com/image/4419285/dominion-renaissance) that there's some significant margin space between them to mark player color, so that makes sense.

Correct! The length to width ratios will be slightly different for the overall mat versus the individual Coffers and Villagers sections.

I think if you're going to provide a mat option for people, I'd go with the individual Coffers or Villagers ratio, but at a size that is about as big as the overall mat size.
Title: Re: Dominion Card Image Generator v1.5
Post by: Jeebus on December 01, 2018, 01:43:59 pm
I'm noticing that when I download the image, some problem occurs in my browser (Vivaldi), so that from now on, every time I re-focus the browser, it freezes for a few fractions of a second. After downloading 10-15 cards yesterday, my browser took 5 seconds to unfreeze every time I re-focused from another window. That means it's unusable of course. I had to delete all settings, bookmarks etc and build it up again. I downloaded one card now, and it's starting to happen again. I have never had this problem with any other web application. I have no idea where the problem lies.

EDIT: I have finally isolated the problem. It's in the History. It doesn't help to clear the history in the browser, however. I have to delete the actualy History file (from C:\Users\<user>\AppData\Local\Vivaldi\User Data\Default) and let Vivaldi rebuild it.
Title: Re: Dominion Card Image Generator v1.5
Post by: LibraryAdventurer on December 02, 2018, 07:43:27 pm
First, thanks again for this very cool card image generator!  Photoshop is a pain to use for making fan card mock-ups.

I wondered why the .png file to download from the generator is so big for a picture file. The .png file I just downloaded for the fan card is 2.5 Mb, compared the fan card images (also .png files) I made a while back with photoshop which are about 300 Kb.
Title: Re: Dominion Card Image Generator v1.5
Post by: Rabenkind on December 03, 2018, 08:26:00 am
In the german forum I found Tamplates for Gimp. They are very easy to edit.
For vertical cards:
https://www.magentacloud.de/lnk/fwT4yTjF#file
For horizontal cards:
https://www.magentacloud.de/lnk/73gKj5C3#file
Of course they are not as easy, like the generator!
Oh, if you don’t have Trajan Pro, you maybe need this font:
https://www.dafont.com/optimusprinceps.font
Title: Re: Dominion Card Image Generator v1.5
Post by: Neirai the Forgiven on December 12, 2018, 02:36:51 pm
A bit of feedback from recently printing my fan expansion, Antiquities:

For the official cards, there's a maximum size for rules text; the generator doesn't keep this in mind. For example, if you were to render your own version of Scholar, the text will be much larger than the official cards. Overall it's not terrible but they do stand out as "not official" when the text gets big. Additionally, I found myself trying to keep the text amounts short... a bit unnecessarily sometimes, because I didn't know what was normal.

Another thing, someone has asked me to make German translations of the cards, but the generator doesn't bold the German words. Could you possibly add a way to force text to be bold? This would also be good for people adding new keywords *puppy eyes*.

Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on December 12, 2018, 08:05:49 pm
For the official cards, there's a maximum size for rules text; the generator doesn't keep this in mind. For example, if you were to render your own version of Scholar, the text will be much larger than the official cards.
This isn't true. The generator's maximum text size is admittedly slightly larger--not "much" larger--than certain scanned images, but it was based on other scanned images, so for those ones it's the right size. This just isn't something that's fully consistent across all cards/expansions/editions, and if I have to pick only one size to start from, out of the various possibilities offered by different cards, I'd rather a larger than a smaller.
Quote
Another thing, someone has asked me to make German translations of the cards, but the generator doesn't bold the German words. Could you possibly add a way to force text to be bold? This would also be good for people adding new keywords *puppy eyes*.
This is in the works, but obviously only every once in a while do I actually feel like writing code for this, so I have no time estimate for you.

ETA: other replies:
Quote
I'm noticing that when I download the image, some problem occurs in my browser (Vivaldi), so that from now on, every time I re-focus the browser, it freezes for a few fractions of a second
I'm sorry, I've never even heard of Vivaldi and have no desire to troubleshoot this right now. The images are <canvas> elements, and you're downloading them using whatever your browser's standard code for downloading <canvas> images is. The download process is 100% something your browser handles, not me.

Quote
I wondered why the .png file to download from the generator is so big for a picture file. The .png file I just downloaded for the fan card is 2.5 Mb, compared the fan card images (also .png files) I made a while back with photoshop which are about 300 Kb.
I'm going to guess the images you made with photoshop are much smaller in terms of pixel dimensions, which naturally translates to being smaller in terms of filesize. These are raster images, after all, not vectors.
Title: Re: Dominion Card Image Generator v1.5
Post by: LibraryAdventurer on December 12, 2018, 10:24:23 pm
These are raster images, after all, not vectors.
What does this mean? I don't know of these 'raster' or 'vectors' of which you speak.
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on December 13, 2018, 12:23:04 am
Okay! Look at this triangle.
(https://upload.wikimedia.org/wikipedia/commons/thumb/1/16/TriangleArrow-Left.svg/104px-TriangleArrow-Left.svg.png)
In a raster image, which most image formats qualify as--png, bmp, gif, jpeg, etc.--this is basically encoded as a long list of pixels specifying whether each one should be black or transparent (or something in-between, for the edges). The downside to this approach is that if you want to resize the image, you get something like this:
(https://upload.wikimedia.org/wikipedia/commons/thumb/1/16/TriangleArrow-Left.svg/104px-TriangleArrow-Left.svg.png)
The program doing the resizing, in this case your web browser, has no idea what the image is actually supposed to depict. It just knows there are a bunch of pixels in different places, and when trying to draw the image larger, it grabs one of those pixels (or multiple of those pixels, if it's blurring) and uses that. So that's one downside to raster images: they have a finite amount of detail, and when you try to display them at a size larger than their detail, it looks wrong.

Because raster images are essentially just lists of pixels, their filesize is hugely affected by their dimensions. A 32x32 image has far fewer pixels than a 1024x1024 image, for example, so it'll almost always be smaller. Depending on the specific image file format you're using, the complexity of the image will also play a role, but the dimensions will always be a factor.

Vector images (most commonly svg files) don't do any of that. The vector equivalent of that triangle image is basically, instead of a long list of pixels, a statement "there is a shape and it's black and it has three points and they are located here, here, and here." That's it! And each of those point locations would be expressed as a percentage of the image's overall width and height. So when you resize a vector image, it looks like this instead:
(https://upload.wikimedia.org/wikipedia/commons/1/16/TriangleArrow-Left.svg)
(https://upload.wikimedia.org/wikipedia/commons/1/16/TriangleArrow-Left.svg)
Perfectly smooth at any size. Vector image file formats generally let you specify a size the image should be displayed as by default, but really, the images themselves don't exactly have dimensions, they're just lists of shapes. The filesize of a vector file will depend purely on the number and complexity of those shapes, but won't care in the slightest about dimensions.

So you might think, wow, vector images sound great, they have none of the downsides of raster images, let's use them for everything! Well, for triangles and stuff, sure. But look at this random picture:
(http://wiki.dominionstrategy.com/images/d/dd/Market_SquareArt.jpg)
It would take forever to reduce this to a list of shapes and their colors. The more textured the image, the more irregular the shapes, etc., the harder it gets to make a vector equivalent, and automatic software solutions remain fallible. So both rasters and vectors persist, because both do different jobs.
Title: Re: Dominion Card Image Generator v1.5
Post by: LibraryAdventurer on December 13, 2018, 01:59:30 am
oh. ok. So, back to my original question, why are the images created by your generator so much bigger (dimentionally as well as file size) than a photoshop template for Dominion cards?
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on December 13, 2018, 03:15:03 am
So the DPI is higher in case you want to print anything.
Title: Re: Dominion Card Image Generator v1.5
Post by: Neirai the Forgiven on December 13, 2018, 12:31:07 pm
So the DPI is higher in case you want to print anything.

To chime in, when I printed the Antiquities physicals, the printer (www.ludocards.com) wouldn't accept any files under a certain DPI... which basically translated to "under a certain dimensions" if you're using normal windows images. So the fact that the generator produces such massive images was exactly what they/I wanted.

(The printer would reject those files because experience says the client will be upset by the low quality/blotchy/gross results)
Title: Re: Dominion Card Image Generator v1.5
Post by: NoMoreFun on January 12, 2019, 07:32:42 pm
Can someone please sticky this topic?
Title: Re: Dominion Card Image Generator v1.5
Post by: MattLee on January 13, 2019, 12:00:17 am
Can someone please sticky this topic?

I can't believe it hasn't been yet. Seriously, if we want this part of the forum to be as active as possible this NEEDS to be stickied.
Title: Re: Dominion Card Image Generator v1.5
Post by: Asper on January 13, 2019, 06:59:51 am
I'm sure we talked about sticky-ing this thread before. I have my own template, and even then I love how simple to use this is. If you could upload your own expansion symbol and this didn't have some issues with certain costs (*, +), I'd use it for everything.
Title: Re: Dominion Card Image Generator v1.5
Post by: Shard of Honor on February 02, 2019, 08:58:30 pm
Hey folks,

I started to adjust this great dominion card image generator with a few additional features. At first, only locally for personal use, but I don't want to keep this from the community, so here it is:

https://shardofhonor.github.io/dominion-card-generator/ (https://shardofhonor.github.io/dominion-card-generator/index.html)

Dumb example to showcase some of the new features (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Delivery&description=%0A%2B1%20Slice%0A%0A-%0A%0AWhen%20you%20buy%20this%2C%20you%20may%20overpay%20for%20it.%20For%20each%20%241%20you%20overpaid%3A%20%2B1%20Pizza%0A%0A-%0A%0AIf%20another%20player%20gains%20a%20Pizza%2C%20you%20may%20discard%20this%20for%20%2B1%20Slice%0A&type=%20Action%20-%20Reaction%20%20&credit=Illustration%3A%20Google%20Images&creator=v1%20EXAMPLE&price=%242%2B&preview=&type2=&color2split=19&boldkeys=Pizza%3BSlice&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fsmokeyspizza.net%2Fwp-content%2Fuploads%2F2014%2F11%2FPizza-Delivery.jpg&expansion=https%3A%2F%2Fstatic.thenounproject.com%2Fpng%2F152-200.png&color0=3&color1=1&size=0)

I am sure, Violet CLM's next version is even better, but it might be useful for you in the meantime.
I hope nobody takes offense, if I hijack this. But if this is the case, I can delete my version again very quickly!
Please note, that the main effort and code is not made by me and these are only small adjustments to the original, including:

- Better display of overpay and variable costs
- Two lines for more than 3 types
- Options to move and zoom card images
- Custom boldable keywords (the german keywords are already hardcoded into it)
- Custom expansion icons
- Option to create italic text, by adding the code "[­i]" to the specific line
- New right-justified line at the bottom to enter additional credit information
- More positions to split the background for two colored cards

(Tested on macOS with Chrome, Firefox and Safari)
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on February 03, 2019, 01:36:55 am
Some great additions there, thanks for sharing! The Position X/Position Y/Zoom sliders in particular are exactly what I've always had in mind but never gotten around to implementing... something about their CSS may be a bit iffy, though, because the two form columns are wildly different widths for me, at least viewing in Chrome. I've also noticed that changing the Secondary Color doesn't work properly when Split Position is anything other than Half, and for that matter, Split Position probably shouldn't be an available field for card styles when it doesn't do anything.

ETA: also, you've got a problem where messing with the image's position/size can cause it to be drawn behind the transparent corners of the card
Title: Re: Dominion Card Image Generator v1.5
Post by: herw on February 03, 2019, 01:53:31 am
Hey folks,

I started to adjust this great dominion card image generator with a few additional features. At first, only locally for personal use, but I don't want to keep this from the community, so here it is:

https://shardofhonor.github.io/dominion-card-generator/ (https://shardofhonor.github.io/dominion-card-generator/index.html)

[...]
great additions; thanks
I still don't like the pictures of costs and debts. The numbers are too big (especially when using 12$ or 12 debt). The numbers should be a few pixel to bottom.
Long titles (more than 13 characters) have a conflict with costs on top (treasures).
Title: Re: Dominion Card Image Generator v1.5
Post by: Shard of Honor on February 03, 2019, 10:26:37 am
I fixed some of the issues, namely:

- the title conflict for treasures
- layout for sliders
- changing of secondary color for other split positions
- cut corners for zoomed picture

Still open issues (https://github.com/shardofhonor/dominion-card-generator/issues) are the number rendering and hiding the split position field, if it is not required. I'll do this, when I find some time for it.
Title: Re: Dominion Card Image Generator v1.5
Post by: mail-mi on February 08, 2019, 01:01:05 pm
This may seem like a dumb question, but how do I get the card from the creator onto the forum? I'm pretty illiterate in this field.
Title: Re: Dominion Card Image Generator v1.5
Post by: Shard of Honor on February 08, 2019, 01:39:33 pm
This may seem like a dumb question, but how do I get the card from the creator onto the forum? I'm pretty illiterate in this field.
Despite the generator being a website, the image is only generated via javascript running locally in your browser, so there is no static image that can be referenced directly.
So you have to download the image from the generator to your computer via right-click option and then upload it somewhere at a image hosting service (for example imgur) to reference the image link from there using image bb code like this:
Code: [Select]
[img width=200]https://exampleimagehostingservice.com/link-to-image-file[/img]
Title: Re: Dominion Card Image Generator v1.5
Post by: Shard of Honor on February 08, 2019, 04:24:16 pm
The numbers issue is not exactly solved but hopeful better and the split-position field now only shows, when needed.
And there are two new things: Base Cards (https://shardofhonor.github.io/dominion-card-generator/index.html?title=River&description=2%25%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A%0A&type=Victory&credit=Illustration%3A%20Rio%20Grande&creator=&price=%243%5E&preview=&type2=&color2split=1&boldkeys=&picture-x=0.47&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fthumb%2F6%2F61%2FBaseArt.jpg%2F500px-BaseArt.jpg&expansion=https%3A%2F%2Fcdn3.iconfinder.com%2Fdata%2Ficons%2Fline%2F36%2Fbeaker-512.png&color0=2&color1=0&size=3) and Pile Markers (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Bane&description=&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F8%2F89%2FYoung_WitchArt.jpg&expansion=&color0=3&color1=0&size=4)
Title: Re: Dominion Card Image Generator v1.5
Post by: Commodore Chuckles on February 08, 2019, 06:10:19 pm
This may seem like a dumb question, but how do I get the card from the creator onto the forum? I'm pretty illiterate in this field.
Despite the generator being a website, the image is only generated via javascript running locally in your browser, so there is no static image that can be referenced directly.
So you have to download the image from the generator to your computer via right-click option and then upload it somewhere at a image hosting service (for example imgur) to reference the image link from there using image bb code like this:
Code: [Select]
[img width=200]https://exampleimagehostingservice.com/link-to-image-file[/img]

To be more precise, you have to take a screen shot. I don't think you can download the image just by right-clicking on it.
Title: Re: Dominion Card Image Generator v1.5
Post by: Violet CLM on February 08, 2019, 06:12:46 pm
You can download the image just by right-clicking on it.
Title: Re: Dominion Card Image Generator v1.5
Post by: Shard of Honor on February 09, 2019, 05:48:24 pm
We all know Coffers (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Coffers&description=During%20your%20Buy%20phase%2C%20before%20you%20buy%20anything%2C%20you%20may%20remove%20tokens%20from%20this%20for%20%2B%20%241%20%20each.&type=&credit=Illustration%3A%20Rio%20Grande%20Games&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0.02&picture-zoom=1.6&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fthumb%2Fb%2Fbf%2FCoffers.jpg%2F800px-Coffers.jpg&expansion=&color0=1&color1=0&size=5) and Villagers (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Villagers&description=During%20your%20Action%20phase%2C%20you%20may%20remove%20%0Atokens%20from%20this%20for%20%2B1%20Action%20each.&type=&credit=Illustration%3A%20Rio%20Grande%20Games&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0.11&picture-y=0.08&picture-zoom=1.7&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fthumb%2F7%2F79%2FVillagersMat.jpg%2F800px-VillagersMat.jpg&expansion=&color0=0&color1=0&size=5) mats. How about a way to organize your VP (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Victory&description=At%20the%20end%20of%20the%20game%2C%20remove%20%0Atokens%20from%20this%20for%20%2B1%20%25%20%20each.&type=&credit=Illustration%3A%20Rio%20Grande%20Games&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fthumb%2F6%2F61%2FBaseArt.jpg%2F800px-BaseArt.jpg&expansion=&color0=2&color1=0&size=5) and Debt (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Debt&description=Before%20you%20buy%20anything%2C%20pay%20back%20all%20%40%20%0Aon%20this%20with%20%241%20%20each.&type=&credit=Illustration%3A%20Rio%20Grande%20Games&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=-0.06&picture-y=-0.5&picture-zoom=1.4&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F9%2F9a%2FDebtCardboard.jpg&expansion=&color0=7&color1=0&size=5) tokens?
Ahh, yes. I've also implemented a (still rudimentary) option to create player mats  8)
Title: Re: Dominion Card Image Generator v1.5
Post by: Commodore Chuckles on February 09, 2019, 06:04:00 pm
You can download the image just by right-clicking on it.

On what browser? It doesn't work for me on Safari.
Title: Re: Dominion Card Image Generator v1.5
Post by: Shard of Honor on February 09, 2019, 06:21:20 pm
You can download the image just by right-clicking on it.

On what browser? It doesn't work for me on Safari.

Just tested it myself and you are right. Safari does not have the right click option. Firefox and Chrome have it. Never realized that before...
I've added a download button for the full sized image  ;)
Title: Re: Dominion Card Image Generator v1.5
Post by: DooWopDJ on February 28, 2019, 02:36:26 pm
Thanks for the updates.
I am having an issue with some images not displaying in the new version.
Should I post the image URL here or PM for you to review?
Thanks
Title: Re: Dominion Card Image Generator v1.5
Post by: Shard of Honor on February 28, 2019, 04:43:10 pm
Thanks for the updates.
I am having an issue with some images not displaying in the new version.
Should I post the image URL here or PM for you to review?
Thanks

Just PM me. If I have time, I'll have a look into it  ;)
Title: Re: Dominion Card Image Generator v1.5
Post by: Shard of Honor on March 01, 2019, 01:42:23 pm
The Image bug was quite easy to fix. All kinds of image URLs should work again. (Technical Details here (https://github.com/shardofhonor/dominion-card-generator/commit/e56ab4e34bec69d61bfbc8b2ef465c2cde70b95f))
Title: Re: Dominion Card Image Generator v1.5
Post by: DooWopDJ on March 01, 2019, 11:34:27 pm
The Image bug was quite easy to fix. All kinds of image URLs should work again. (Technical Details here (https://github.com/shardofhonor/dominion-card-generator/commit/e56ab4e34bec69d61bfbc8b2ef465c2cde70b95f))
Thanks works very well
Title: Re: Dominion Card Image Generator v1.5
Post by: King Leon on March 04, 2019, 08:39:18 am
Hi Shard of Honor,

I see that you are using Trajan Bold Pro and Minion Std Black, both are copyright by Adobe. In the way you are using those fonts, the full font program is downloaded by the client. This is clearly a license violation. Therefore I tried to find some free and open source alternatives and found Cinzel and Crimson Text. What do you think?

Cinzel Bold
https://fonts.google.com/specimen/Cinzel

Crimson Text Bold
https://fonts.google.com/specimen/Crimson+Text
Title: Re: Dominion Card Image Generator v1.5
Post by: Shard of Honor on March 04, 2019, 10:20:03 am
Hi Shard of Honor,

I see that you are using Trajan Bold Pro and Minion Std Black, both are copyright by Adobe. In the way you are using those fonts, the full font program is downloaded by the client. This is clearly a license violation. Therefore I tried to find some free and open source alternatives and found Cinzel and Crimson Text. What do you think?

Cinzel Bold
https://fonts.google.com/specimen/Cinzel

Crimson Text Bold
https://fonts.google.com/specimen/Crimson+Text

You are right. Thanks. Not the best idea...
I copied that part from the original generator.

Now, the font files are not hosted any more inside the generator. Instead, it first tries to find these fonts on your local computer, and otherwise a cascading fallback is defined to load them or similar replacements externally. This might result in some visual differences.
Title: Re: Dominion Card Image Generator
Post by: Violet CLM on March 06, 2019, 10:21:30 pm
This thread has now been stickied, presumably in response to some feature or other added by Shard of Honor... italics, maybe? In response, I've edited the first post to include links to Shard's fork at its home page and also its announcement in this thread.
Title: Re: Dominion Card Image Generator
Post by: DooWopDJ on March 11, 2019, 03:20:44 pm
I have a few questions about the ShardofHonor card generator
1.  The Primary vs. Secondary option see to be 'flipped' - I have an Action - Duration - Reaction card (same type as Caravan Guard)
     But in order to get the correct color layout (to match Caravan Guard), I have to make the primary as 'Reaction', then secondary as 'Duration'.
     This seems counter-intuitive to me.  Sure I can adjust the sequence, but maybe it is just me that has noticed this?
2. I could not figure out how to use the 'Additional Bold Keywords' option
3. Is the split position options, in place for a reason? Are there Expansion option that have the coloring not using the 1/2 option?
4. VP Token option used in any of the current expansions?
Thanks
DooWopDJ
Title: Re: Dominion Card Image Generator
Post by: Doom_Shark on March 11, 2019, 04:16:37 pm
It took me a while to figure out "Additional Bold Keywords" as well. Basically, it only works if you want something like "+2 Mutineers." You type in "Mutineers;" in the box, and it will bold any type of "+[number] Mutineers"
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 12, 2019, 07:43:29 am
I have a few questions about the ShardofHonor card generator
1.  The Primary vs. Secondary option see to be 'flipped' - I have an Action - Duration - Reaction card (same type as Caravan Guard)
     But in order to get the correct color layout (to match Caravan Guard), I have to make the primary as 'Reaction', then secondary as 'Duration'.
     This seems counter-intuitive to me.  Sure I can adjust the sequence, but maybe it is just me that has noticed this?
2. I could not figure out how to use the 'Additional Bold Keywords' option
3. Is the split position options, in place for a reason? Are there Expansion option that have the coloring not using the 1/2 option?
4. VP Token option used in any of the current expansions?
Thanks
DooWopDJ

1. I agree with you, but if I change it now, all links will be broken...
2. For example VioletCLM's Sellsail (https://shardofhonor.github.io/dominion-card-generator/?title=Sellsail&description=%2B2%20Cards%0A%2B1%20Action%0A%2B2%20Mutineers&type=Action&credit=Illustration%3A%20nachomolina&creator=&price=%244&preview=&type2=&color2split=1&boldkeys=Mutineers&picture-x=0&picture-y=0&picture-zoom=1&picture=https%3A%2F%2Forig00.deviantart.net%2F7cd1%2Ff%2F2010%2F263%2Fd%2F0%2Fsalladhar__s_crew_by_nachomolina-d2z412n.jpg&expansion=&color0=0&color1=0&size=0)
3. The split position could be used to achieve an effect as in Pasture (http://wiki.dominionstrategy.com/index.php/Pasture) or Distant Lands (http://wiki.dominionstrategy.com/index.php/Distant_Lands), where the green coloring is not perfectly in the middle.
4. VP Tokens are used in the German prints of Prosperty and Empires (by ASS Altenburger) instead of the normal VP symbol. A stupid decision of them, but I rather have all my cards consistent...
Title: Re: Dominion Card Image Generator
Post by: DooWopDJ on March 12, 2019, 09:08:28 am
I have a few questions about the ShardofHonor card generator
1.  The Primary vs. Secondary option see to be 'flipped' - I have an Action - Duration - Reaction card (same type as Caravan Guard)
     But in order to get the correct color layout (to match Caravan Guard), I have to make the primary as 'Reaction', then secondary as 'Duration'.
     This seems counter-intuitive to me.  Sure I can adjust the sequence, but maybe it is just me that has noticed this?
2. I could not figure out how to use the 'Additional Bold Keywords' option
3. Is the split position options, in place for a reason? Are there Expansion option that have the coloring not using the 1/2 option?
4. VP Token option used in any of the current expansions?
Thanks
DooWopDJ

1. I agree with you, but if I change it now, all links will be broken...
    ---- Good point.  Yeah I really would not like to have to fix them.  And I should NOT complain either.  These card generators are AWESOME.
My apologies for noticing (I test software for a living).
2. For example VioletCLM's Sellsail (https://shardofhonor.github.io/dominion-card-generator/?title=Sellsail&description=%2B2%20Cards%0A%2B1%20Action%0A%2B2%20Mutineers&type=Action&credit=Illustration%3A%20nachomolina&creator=&price=%244&preview=&type2=&color2split=1&boldkeys=Mutineers&picture-x=0&picture-y=0&picture-zoom=1&picture=https%3A%2F%2Forig00.deviantart.net%2F7cd1%2Ff%2F2010%2F263%2Fd%2F0%2Fsalladhar__s_crew_by_nachomolina-d2z412n.jpg&expansion=&color0=0&color1=0&size=0)
-- I see, I could not figure out the 'use' format.  It required the +1 symbols (I just thought it would bold any word in the field.  Thanks.
3. The split position could be used to achieve an effect as in Pasture (http://wiki.dominionstrategy.com/index.php/Pasture) or Distant Lands (http://wiki.dominionstrategy.com/index.php/Distant_Lands), where the green coloring is not perfectly in the middle.
Still an awesome option, although I could not 'replicate' the DL effect.
4. VP Tokens are used in the German prints of Prosperty and Empires (by ASS Altenburger) instead of the normal VP symbol. A stupid decision of them, but I rather have all my cards consistent...
I like the VP Token option as a new option to use in my card text instead of typing "Victory Point token" I can type #"  Thanks for making the card designer so 'flexible'.
Title: Re: Dominion Card Image Generator
Post by: DooWopDJ on March 21, 2019, 03:54:14 pm
It could just be my eyesight, but there are two "+" symbols that do not seem to be 'bolded'
The + $1 Coin and the +1 %

https://shardofhonor.github.io/dominion-card-generator/index.html?
title=2%20Non%20Bolded%20Plus&description=%2B1%20Buy%0A%2B%202%25%0A%2B%20%241%0A%0A&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=-1&picture-y=-0.35&picture-zoom=1&picture=&expansion=&color0=0&color1=0&size=0

Note:
Also if you start off you remove the space in the +$1 it is really big

https://shardofhonor.github.io/dominion-card-generator/index.html?title=2%20Non%20Bolded%20Plus&description=%2B1%20Buy%0A%2B%202%25%0A%2B%241%0A%0A&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=-1&picture-y=-0.35&picture-zoom=1&picture=&expansion=&color0=0&color1=0&size=0
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 21, 2019, 04:30:43 pm
Yeah, there is a problem in the regular expressions, that for the rules of when to bold text...
I am not very good in regex, but I'll try to fix it and refine the rules to better handle these cases.

When removing the space between plus and coin or VP, it is correctly recognized as symbols, that should be bolded. But as these are now alone in a row, they are formatted differently than in the text. And Coins and VP symbols alone are much bigger... currently also if there are leading operators.

In the meantime, you can trick the generator into thinking, that there is other text in the line by using invisible special characters like the non-breaking-space:
https://shardofhonor.github.io/dominion-card-generator/index.html?title=Bolded%20Plus&description=%2B1%20Buy%0A%2B2%25%20%E2%80%89%0A%2B%241%20%E2%80%89&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=-1&picture-y=-0.35&picture-zoom=1&picture=&expansion=&color0=0&color1=0&size=0 (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Bolded%20Plus&description=%2B1%20Buy%0A%2B2%25%20%E2%80%89%0A%2B%241%20%E2%80%89&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=-1&picture-y=-0.35&picture-zoom=1&picture=&expansion=&color0=0&color1=0&size=0)
Title: Re: Dominion Card Image Generator
Post by: Hedgehogmsx on April 22, 2019, 08:18:39 am
Hello,

I'm french, and I work on some projects to translate fan expansions into my language for me and my friends.

This card image generator is wonderfull to do that ! Thanks so much for that tool.

There is my question.
In the fan expansion called salvation, a new token is used, like in this card :
(https://cf.geekdo-images.com/imagepage/img/OyZLd1sCkPAaKzkkzameSU1lG08=/fit-in/900x600/filters:no_upscale()/pic976548.jpg)

How can I insert it by this generator ?
I think it needs a little improvement.
2 solutions : add this token or ... a way to add some special characters linked to some little image that we can use in description.

The second solution would be a great improvement ;-)
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on April 22, 2019, 05:53:30 pm
2 solutions : add this token or ... a way to add some special characters linked to some little image that we can use in description.

The second solution would be a great improvement ;-)

That was quite easy to add. I hope one custom token is enough. Making it variable would be a lot more work...
Here is your example: Indulgence Trade (https://shardofhonor.github.io/dominion-card-generator/?title=Indulgence%20Trade&description=%0A%2B%244%20%E2%80%89%0A%2B1%20Buy%0A%2B1%C2%A7%20%E2%80%89%0A%0A%0AEach%20other%20player%20removes%20%C2%A71%0A&type=Action&credit=&creator=&price=%245&preview=&type2=&color2split=1&boldkeys=&picture-x=0.37&picture-y=0.74&picture-zoom=1.1&picture=http%3A%2F%2F4.bp.blogspot.com%2F-l_CRdMY5jZQ%2FUwS6aUWlJgI%2FAAAAAAAABfQ%2Fjj2Q4w8WDEk%2Fs1600%2Fventa-de-indulgencias.jpg&expansion=https%3A%2F%2Fimages.vexels.com%2Fmedia%2Fusers%2F3%2F154405%2Fisolated%2Flists%2Fdde2f9636a73ef5e5b629da46b6bc001-icono-dibujado-a-mano-cruz.png&custom-icon=https%3A%2F%2Fcdn.shopify.com%2Fs%2Ffiles%2F1%2F1285%2F7725%2Fproducts%2FRed_Marble_8a5fd9a1-7aa7-4694-ab22-67c8095bb58a_large.png%3Fv%3D1537348974&color0=0&color1=0&size=0)

I still couldn't solve the problem with icons in single lines, but at least it is possible to use the workaround mentioned above.
Title: Re: Dominion Card Image Generator
Post by: Hedgehogmsx on April 29, 2019, 10:48:45 am
Hello !

I will try it.

Thanks you very much !
Title: Re: Dominion Card Image Generator
Post by: Hedgehogmsx on May 03, 2019, 08:56:16 am
It works fine !

(https://i.ibb.co/R4r49CH/Aum-ne.png)
Title: Re: Dominion Card Image Generator
Post by: Hedgehogmsx on May 03, 2019, 08:57:06 am
So ... now I have some woks to do  ;)

Thank you again !
Title: Re: Dominion Card Image Generator
Post by: LibraryAdventurer on May 25, 2019, 11:40:23 pm
The Victory token symbol doesn't seem to work. It shows up all grey. I don't think I'd recognize what it was if I didn't tell it to put a victory token symbol there.
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on May 26, 2019, 01:05:02 am
The Victory token symbol doesn't seem to work. It shows up all grey. I don't think I'd recognize what it was if I didn't tell it to put a victory token symbol there.
It's the symbol used by the German prints by the publisher ASS Altenburger and should depict one of the physical tokens of empires or prosperity. Sad, that they decided to change that from the English originals, but at least with that option it is possible for me to keep all my German versions consistent within themselves.
So it works as intended but is only of limited use for you guys...
Title: Re: Dominion Card Image Generator
Post by: hhelibebcnofnena on May 26, 2019, 10:59:07 am
I was able to download the card. But then I realized I don't actually know how to copy a downloaded image into the forum. How does one do this?
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on May 26, 2019, 10:15:27 pm
I was able to download the card. But then I realized I don't actually know how to copy a downloaded image into the forum. How does one do this?
You have to upload it at a image holster and use the file url to include it. For the correct syntax, just quote a post with pictures to see the code.
Title: Re: Dominion Card Image Generator
Post by: hhelibebcnofnena on May 26, 2019, 10:43:58 pm
I was able to download the card. But then I realized I don't actually know how to copy a downloaded image into the forum. How does one do this?
You have to upload it at a image holster and use the file url to include it. For the correct syntax, just quote a post with pictures to see the code.

Thanks.
Title: Re: Dominion Card Image Generator
Post by: Fly-Eagles-Fly on August 06, 2019, 08:58:04 pm
Can someone help me get a custom expansion icon, every time I try there's always a white box in its background. I'm trying use something like these:
http://clipart-library.com/clip-art/philadelphia-eagles-logo-silhouette-1.htm (http://clipart-library.com/clip-art/philadelphia-eagles-logo-silhouette-1.htm)
http://clipart-library.com/images_k/philadelphia-eagles-logo-silhouette/philadelphia-eagles-logo-silhouette-1.png (http://clipart-library.com/images_k/philadelphia-eagles-logo-silhouette/philadelphia-eagles-logo-silhouette-1.png)
Title: Re: Dominion Card Image Generator
Post by: Freddy10 on August 06, 2019, 10:04:44 pm
I think is related to the web page. I tried with other icons of that page, and they seem to not work. Try to download the icon and upload somewhere else, like imgur
Title: Re: Dominion Card Image Generator
Post by: Fly-Eagles-Fly on August 18, 2019, 07:32:54 pm
How exactly does the favorite cards feature work?
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on August 19, 2019, 04:19:32 pm
I am happy somebody has already noticed it  :)

In general, the favorites function is not that different from bookmarks in your browser. As you maybe know, the card generator stores all parameters in the URL. The favorites are these URLs stored locally in the browser (similar to Cookies). An advantage is duplicate checking for new favorites (it does store the exact same parameter combination only once) and the search function. The title is generated out of the template type, the price, the card types and the card title. But be careful, if you delete your browser data, all sorted entries are gone again.
Or if I program a bug...
Real favorites or exported pictures are saver.

So what to do with it?
I wouldn't use it to store entire expansion sets because there is no export function yet and as said, it might get lost easily. But for a quick access for current work-in-process cards or own templates, it might be just right.

Why did I do it?
I was in the mood for programming and liked to explore the possibilities of the browsers local store a little bit more.

Additionally, I did also add a simple web app service worker, that caches all card source files. Hopefully, this increases the performance of the generator.

PS: as already said by Freddy10, the image issue is most likely related to how that webpage serves the files. But I haven't found the reason...
Title: Re: Dominion Card Image Generator
Post by: Fly-Eagles-Fly on August 19, 2019, 10:59:49 pm
Well thanks, it's great  :)
Title: Re: Dominion Card Image Generator
Post by: Chris Bockhahn on August 20, 2019, 08:37:47 am
Shard of Honor, I've been using the generator for a while now and have yet to express my appreciation. It's amazing! Thank you for putting in the time and effort to save us all time and effort.

I've run into a rare issue. If you want to add a cost and debt to a dual type card, the debt icon covers the beginning of the word "Action - ..."
Here's an example (https://shardofhonor.github.io/dominion-card-generator/index.html?title=&description=&type=Action%20-%20Duration&credit=&creator=&price=%244%20%406&preview=&type2=&color2split=1&boldkeys=&picture-x=-0.15&picture-y=-1&picture-zoom=1&picture=&expansion=&custom-icon=&color0=4&color1=0&size=0) to see what I mean. I'll likely just photoshop this card myself but I thought I'd mention it anyway. Thanks again your Honor.
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on August 20, 2019, 11:05:13 am
Easier than photoshop is just to add a few spaces in front of your types.
But I've adjusted the generator. Your error should be solved.
Title: Re: Dominion Card Image Generator
Post by: Chris Bockhahn on August 21, 2019, 10:43:51 am
Easier than photoshop is just to add a few spaces in front of your types.
But I've adjusted the generator. Your error should be solved.
I'm a dope for not thinking of that.  :P
Title: Re: Dominion Card Image Generator
Post by: popsofctown on September 14, 2019, 05:54:57 am
(https://i.imgur.com/AsvW9jUm.png)

Disclaimer designed while drunk.
Title: Re: Dominion Card Image Generator
Post by: naitchman on September 22, 2019, 12:12:14 pm
Hey, I have question about this tool (I understand basic computer stuff, but I'm not so tech savvy).

I've been making a bunch of fan cards and saving them by using the favorites button. Now that I have a new computer is there a way for my new computer to access those cards? (note I can't just copy the url's because many of the url's are too long and won't work in my browser because the image address is very long).
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on September 22, 2019, 12:46:35 pm
Maybe this is possible by copying the local app data of your browser to your new PC. Or you could try accessing the data saved locally by the website via the browsers web development tools and copy it into a file.

Currently, I have no time to implement a real export function for the favorites, but it is on my to-do list.

Unfortunately, copying the URLs would have been my fist suggestion, as the favorites function actually does nothing different than just storing a list of URLs...
Title: Re: Dominion Card Image Generator
Post by: Qvist on September 22, 2019, 12:53:20 pm
What browser are you using? It seems weird that you can't copy the URL. Also if you use for example Chrome you could just bookmark the URL and it would automatically sync to your new computer. I know that works for Chrome, not sure about other browsers.
Title: Re: Dominion Card Image Generator
Post by: Freddy10 on September 22, 2019, 01:03:40 pm
You can try this:
- Open your browser on your old computer
- Go to the card generator page
- Open a console (F12 on firefox)
- write localStorage["favorites"] and press enter
- copy the message you got, save it somewhere and send it to your new computer
- open the card generator page in your new computer
- open the console
- write localStorage.setItem("favorites",  :) ); replacing :) with the value you copied from your old computer and then press enter

I'm not fully sure it works (I tested it on the same computer using two different browsers)
Title: Re: Dominion Card Image Generator
Post by: naitchman on September 22, 2019, 04:34:24 pm
Thanks for the ideas. I'll try them out and see if they work.
Title: Re: Dominion Card Image Generator
Post by: spineflu on February 17, 2020, 02:45:37 pm
hey ShardOfHonor
is there a max/min size for expansion icons? I'm trying to add one (the same way I add a card picture - link over from trello) and i'm not getting any outputted symbol on the card?
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on February 17, 2020, 04:16:41 pm
Hi spineflu,
the icon image is drawn with a height and width of 80 pixels, and resized if the original is larger or smaller.
So no, should be no problem. I just tried with some examples from google image search.
You could dm me the link and I can check your example.
Title: Re: Dominion Card Image Generator
Post by: spineflu on February 17, 2020, 07:22:36 pm
it's working now. who knows what the issue was v0v.
Title: Re: Dominion Card Image Generator
Post by: Sharur on February 20, 2020, 12:04:03 am
I'm trying to create some cards that already exist, so I can either make minor tweaks to them (like changing the art but keeping the contents the same), or because the online images aren't as high quality as this can produce. However, I just noticed that for Bard, the coin text is absolutely massive compared to the original, and I'm wondering if there's a way to adjust that.

Generator version (https://shardofhonor.github.io/dominion-card-generator/?title=Bard&description=%2B%242%0A%0AReceive%20a%20Boon.&type=Action%20-%20Fate&credit=Illustration%3A%20Elisa%20Cella&creator=%C2%A9%202017%20Rio%20Grande%20Games&price=%244&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F2%2F20%2FBardArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fa%2Faa%2FNocturne_icon.png&custom-icon=&color0=0&color1=0&size=0)

Original version (http://wiki.dominionstrategy.com/images/e/ee/Bard.jpg)
Title: Re: Dominion Card Image Generator
Post by: NoMoreFun on February 20, 2020, 12:18:16 am
I'm trying to create some cards that already exist, so I can either make minor tweaks to them (like changing the art but keeping the contents the same), or because the online images aren't as high quality as this can produce. However, I just noticed that for Bard, the coin text is absolutely massive compared to the original, and I'm wondering if there's a way to adjust that.

Generator version (https://shardofhonor.github.io/dominion-card-generator/?title=Bard&description=%2B%242%0A%0AReceive%20a%20Boon.&type=Action%20-%20Fate&credit=Illustration%3A%20Elisa%20Cella&creator=%C2%A9%202017%20Rio%20Grande%20Games&price=%244&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F2%2F20%2FBardArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fa%2Faa%2FNocturne_icon.png&custom-icon=&color0=0&color1=0&size=0)

Original version (http://wiki.dominionstrategy.com/images/e/ee/Bard.jpg)
Put a space between the + and the $ amount
Title: Re: Dominion Card Image Generator
Post by: Sharur on February 20, 2020, 12:25:25 am
Thanks!
Title: Re: Dominion Card Image Generator
Post by: scolapasta on March 03, 2020, 11:40:53 am
Is it possible to create a color scheme like Pasture? (header / footer full Treasure color, text block full Victory color)

When if I chose Victory as Primary and Action as Secondary (or vice versa) it does the two tone card.

(also, does anyone know the custom color codes for the official card types? When I recently was doing a custom type, I wanted to start with the Treasure colors and tweak that)
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 03, 2020, 12:24:53 pm
Is it possible to create a color scheme like Pasture? (header / footer full Treasure color, text block full Victory color)

When if I chose Victory as Primary and Action as Secondary (or vice versa) it does the two tone card.

(also, does anyone know the custom color codes for the official card types? When I recently was doing a custom type, I wanted to start with the Treasure colors and tweak that)

Isn't Pasture a two tone card, too? Like this (https://shardofhonor.github.io/dominion-card-generator/?title=Pasture&description=%0A%241%0A%0A%0A-%0A%0A%0A%0AWorth%201%25%20per%20Estate%20you%20have.%0A%0A&type=Treasure%20-%20Victory%20-%20Heirloom&credit=Illustration%3A%20Matthias%20Catrein&creator=%C2%A9%202017%20Rio%20Grande%20Games&price=%242&preview=%241&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F9%2F9e%2FPastureArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fa%2Faa%2FNocturne_icon.png&custom-icon=&color0=2&color1=2&size=0)?

and here are the color codes:
var normalColorFactorLists = [
      ["Action/Event", [1, 1, 1]],
      ["Treasure", [1.1, 0.95, 0.55]],
      ["Victory", [0.75, 0.9, 0.65]],
      ["Reaction", [0.65, 0.8, 1.05]],
      ["Duration", [1.2, 0.8, 0.4]],
      ["Reserve", [0.9, 0.75, 0.5]],
      ["Curse", [0.85, 0.6, 1.1]],
      ["Shelter", [1.05, 0.65, 0.5]],
      ["Ruins", [0.75, 0.6, 0.35]],
      ["Landmark", [0.45, 1.25, 0.85]],
      ["Night", [0.3, 0.4, 0.45]],
      ["Boon", [1.4, 1.35, 0.55, 0, 0, 0, 1.7, 1.25, 0.65, 1.95, 1.6, 0.4]],
      ["Hex", [0.75, 0.6, 2.1, 0, 0, 0, 0.8, 0.8, 0.8, 1.0, 0.75, 2.1]],
      ["State", [1.1, 1.3, 1.3, 0.6, 0.15, 0, 1.55, 1.15, 1.05, 1.4, 0.65, 0.45]],
      ["Artifact", [1.15, 1, 0.75, 0.3, 0.15, 0.05]],
      ["Project", [1.15, 0.95, 0.9, 0.4, 0.2, 0.15]]
   ];
Title: Re: Dominion Card Image Generator
Post by: scolapasta on March 03, 2020, 12:40:04 pm
Is it possible to create a color scheme like Pasture? (header / footer full Treasure color, text block full Victory color)

When if I chose Victory as Primary and Action as Secondary (or vice versa) it does the two tone card.

(also, does anyone know the custom color codes for the official card types? When I recently was doing a custom type, I wanted to start with the Treasure colors and tweak that)

Isn't Pasture a two tone card, too? Like this (https://shardofhonor.github.io/dominion-card-generator/?title=Pasture&description=%0A%241%0A%0A%0A-%0A%0A%0A%0AWorth%201%25%20per%20Estate%20you%20have.%0A%0A&type=Treasure%20-%20Victory%20-%20Heirloom&credit=Illustration%3A%20Matthias%20Catrein&creator=%C2%A9%202017%20Rio%20Grande%20Games&price=%242&preview=%241&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F9%2F9e%2FPastureArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fa%2Faa%2FNocturne_icon.png&custom-icon=&color0=2&color1=2&size=0)?

This is what they look like in the wiki. I guess the header / footer is two tone - I didn't notice on the print version, because I am a little color blind - it's more clear on the digital. To me the text box does not look split):

Print / Digital:
(http://wiki.dominionstrategy.com/images/thumb/a/a9/Pasture.jpg/373px-Pasture.jpg)(http://wiki.dominionstrategy.com/images/6/6e/PastureDigital.jpg)
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 03, 2020, 01:53:44 pm
This is what they look like in the wiki. I guess the header / footer is two tone - I didn't notice on the print version, because I am a little color blind - it's more clear on the digital. To me the text box does not look split):

The color difference is definitely not that prominent in the text box, but the bottom half of the text box is greener and the top half more yellow in all three versions.

Print / Digital / Card Image Generator:
(http://wiki.dominionstrategy.com/images/thumb/a/a9/Pasture.jpg/373px-Pasture.jpg)(http://wiki.dominionstrategy.com/images/6/6e/PastureDigital.jpg)(https://i.imgur.com/UOExmSL.png)
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 05, 2020, 12:04:39 pm
Update: Added support for the color scheme of Ways. Example (https://shardofhonor.github.io/dominion-card-generator/?title=%20%20Way%20of%20the%20Parrot%20%20&description=%0AIf%20your%20previously%20played%20Action%20is%20still%20in%20play%2C%20%0Aplay%20it%20again.%0A&type=Way&credit=Illustration%3A%20Wikimedia%20%2F%20Contributor50&creator=v0.1%20Shard%20of%20Honor&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0.57&picture-zoom=1&picture=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2F0%2F05%2FParrot.jpg%2F1599px-Parrot.jpg&expansion=&custom-icon=&color0=16&color1=0&size=1)
(you might need to clear the website cache to get the changes)
Title: Re: Dominion Card Image Generator
Post by: Violet CLM on March 05, 2020, 12:15:56 pm
That's a rough match for the printed images, but I generally prefer the digital colors (https://dominion.games/images/cards/templates/way.png), since people are more accustomed to seeing those on screens and they're often more legible. Try this. (https://shardofhonor.github.io/dominion-card-generator/?title=%20%20Way%20of%20the%20Parrot%20%20&description=%0AIf%20your%20previously%20played%20Action%20is%20still%20in%20play%2C%20%0Aplay%20it%20again.%0A&type=Way&credit=Illustration%3A%20Wikimedia%20%2F%20Contributor50&creator=v0.1%20Shard%20of%20Honor&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0.57&picture-zoom=1&picture=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2F0%2F05%2FParrot.jpg%2F1599px-Parrot.jpg&expansion=&custom-icon=&c0.0.0=1&c0.0.1=1.15&c0.0.2=1.25&c0.1.0=0.25&c0.1.1=0.3&c0.1.2=0.35&c0.2.0=0.9&c0.2.1=0.8&c0.2.2=0.7&c0.3.0=0.9&c0.3.1=0.8&c0.3.2=0.7&color1=0&size=1)
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 05, 2020, 12:37:17 pm
That's a rough match for the printed images, but I generally prefer the digital colors (https://dominion.games/images/cards/templates/way.png), since people are more accustomed to seeing those on screens and they're often more legible. Try this. (https://shardofhonor.github.io/dominion-card-generator/?title=%20%20Way%20of%20the%20Parrot%20%20&description=%0AIf%20your%20previously%20played%20Action%20is%20still%20in%20play%2C%20%0Aplay%20it%20again.%0A&type=Way&credit=Illustration%3A%20Wikimedia%20%2F%20Contributor50&creator=v0.1%20Shard%20of%20Honor&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0.57&picture-zoom=1&picture=https%3A%2F%2Fupload.wikimedia.org%2Fwikipedia%2Fcommons%2Fthumb%2F0%2F05%2FParrot.jpg%2F1599px-Parrot.jpg&expansion=&custom-icon=&c0.0.0=1&c0.0.1=1.15&c0.0.2=1.25&c0.1.0=0.25&c0.1.1=0.3&c0.1.2=0.35&c0.2.0=0.9&c0.2.1=0.8&c0.2.2=0.7&c0.3.0=0.9&c0.3.1=0.8&c0.3.2=0.7&color1=0&size=1)

Much better. Thanks!
Title: Re: Dominion Card Image Generator
Post by: LibraryAdventurer on March 11, 2020, 01:12:26 am
When making images for treasures, the (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) amount is always so huge that it makes any text on the card tiny.
Then if I put + (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) to make the coin smaller so the text will be a reasonable size, the plus sign looks like a minus sign.
Can this be fixed?
Title: Re: Dominion Card Image Generator
Post by: X-tra on March 19, 2020, 04:05:45 pm
When making images for treasures, the (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) amount is always so huge that it makes any text on the card tiny.
Then if I put + (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) to make the coin smaller so the text will be a reasonable size, the plus sign looks like a minus sign.
Can this be fixed?

This has been bugging me too. It's not that big of a deal, but it does break the similarity between made-up cards and official ones. You need to put a space between the '+' and (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) for it to appear small. If the space isn't present, then the (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) will turn into its huge variant. But it shouldn't be that way, imo.

Another issue is how bolded words (such as "+1 Card") will automatically make following punctuation bold as well. This includes ',', '.', ';', ':' and other symbols. For instance, writing "Choose one: +1 Card; or +1 Action." will both put the semicolon and the period in bold font, as demonstrated here. It'd be great if they could be in normal font instead, just like official cards are.

Anyway, these small fixes would be greatly appreciated!
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 19, 2020, 06:28:57 pm
When making images for treasures, the (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) amount is always so huge that it makes any text on the card tiny.
Then if I put + (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) to make the coin smaller so the text will be a reasonable size, the plus sign looks like a minus sign.
Can this be fixed?

This has been bugging me too. It's not that big of a deal, but it does break the similarity between made-up cards and official ones. You need to put a space between the '+' and (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) for it to appear small. If the space isn't present, then the (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) will turn into its huge variant. But it shouldn't be that way, imo.

Another issue is how bolded words (such as "+1 Card") will automatically make following punctuation bold as well. This includes ',', '.', ';', ':' and other symbols. For instance, writing "Choose one: +1 Card; or +1 Action." will both put the semicolon and the period in bold font, as demonstrated here. It'd be great if they could be in normal font instead, just like official cards are.

Anyway, these small fixes would be greatly appreciated!

The issue about punctuation should now be solved.

The +(http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) is not that easy to fix, unfortunately. There is a little bit more complicated regex involved. I'll try again, when I've got more time...
Title: Re: Dominion Card Image Generator
Post by: spineflu on March 19, 2020, 06:33:30 pm
When making images for treasures, the (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) amount is always so huge that it makes any text on the card tiny.
Then if I put + (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) to make the coin smaller so the text will be a reasonable size, the plus sign looks like a minus sign.
Can this be fixed?

This has been bugging me too. It's not that big of a deal, but it does break the similarity between made-up cards and official ones. You need to put a space between the '+' and (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) for it to appear small. If the space isn't present, then the (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) will turn into its huge variant. But it shouldn't be that way, imo.

Another issue is how bolded words (such as "+1 Card") will automatically make following punctuation bold as well. This includes ',', '.', ';', ':' and other symbols. For instance, writing "Choose one: +1 Card; or +1 Action." will both put the semicolon and the period in bold font, as demonstrated here. It'd be great if they could be in normal font instead, just like official cards are.

Anyway, these small fixes would be greatly appreciated!

The issue about punctuation should now be solved.

The +(http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) is not that easy to fix, unfortunately. There is a little bit more complicated regex involved. I'll try again, when I've got more time...

could you change it so when there's a zero width space (https://www.fileformat.info/info/unicode/char/200b/index.htm) following the +$\d+ it does the small version? should be the easiest, most invisible version of this tweak.
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 20, 2020, 05:48:42 pm
When making images for treasures, the (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) amount is always so huge that it makes any text on the card tiny.
Then if I put + (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) to make the coin smaller so the text will be a reasonable size, the plus sign looks like a minus sign.
Can this be fixed?

This has been bugging me too. It's not that big of a deal, but it does break the similarity between made-up cards and official ones. You need to put a space between the '+' and (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) for it to appear small. If the space isn't present, then the (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) will turn into its huge variant. But it shouldn't be that way, imo.

Another issue is how bolded words (such as "+1 Card") will automatically make following punctuation bold as well. This includes ',', '.', ';', ':' and other symbols. For instance, writing "Choose one: +1 Card; or +1 Action." will both put the semicolon and the period in bold font, as demonstrated here. It'd be great if they could be in normal font instead, just like official cards are.

Anyway, these small fixes would be greatly appreciated!

The issue about punctuation should now be solved.

The +(http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) is not that easy to fix, unfortunately. There is a little bit more complicated regex involved. I'll try again, when I've got more time...

could you change it so when there's a zero width space (https://www.fileformat.info/info/unicode/char/200b/index.htm) following the +$\d+ it does the small version? should be the easiest, most invisible version of this tweak.

I hope I've fixed it now and haven't introduced any new bugs.
Programmed the rule +<icon><number> manually to not be drawn bigger. Spaces might still be needed to fix alignment.
Imitation of Market (https://shardofhonor.github.io/dominion-card-generator/?title=Market&description=%2B1%20Card%0A%2B1%20Action%0A%2B1%20Buy%0A%2B%241%20%20%20%20&type=Action&credit=Illustration%3A%20Matthias%20Catrein&creator=%C2%A9%202016%20Rio%20Grande%20Games&price=%245&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F2%2F24%2FMarketArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fthumb%2Fb%2Fb0%2FDominion_icon.png%2F800px-Dominion_icon.png&custom-icon=&color0=0&color1=0&size=0)
Title: Re: Dominion Card Image Generator
Post by: Gubump on March 24, 2020, 05:03:20 pm
With the precedent of Snowy Village and Capitalism, I think it would be nice to be able to bold text in our cards, or at least make it so that +bonus is bold instead of just +[amount] bonus.
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 25, 2020, 04:35:30 pm
With the precedent of Snowy Village and Capitalism, I think it would be nice to be able to bold text in our cards, or at least make it so that +bonus is bold instead of just +[amount] bonus.

Good addition. Missed that while checking for new things in Menagerie.
Snowy Village (https://shardofhonor.github.io/dominion-card-generator/?title=Snowy%20Village&description=%2B1%20Card%0A%2B4%20Actions%0A%2B1%20Buy%0A%0AIgnore%20any%20further%20%2BActions%20you%20get%20this%20turn.&type=Action&credit=Illustration%3A%20Claus%20Stephan&creator=%C2%A9%202020%20Rio%20Grande%20Games&price=%243&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fd%2Fd0%2FSnowy_VillageArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fd%2Fd4%2FMenagerie_%2528expansion%2529_icon.png&custom-icon=&color0=0&color1=0&size=0) is now supported, too.
Title: Re: Dominion Card Image Generator
Post by: Ssolberg on March 31, 2020, 08:48:44 am
Great Card Generator !

Does anybody have any tips on how to get them printed ??
Any companies or how to make it on my own!!

And is there any templates for the backside.

Title: Re: Dominion Card Image Generator
Post by: spineflu on March 31, 2020, 12:05:04 pm
Great Card Generator !

Does anybody have any tips on how to get them printed ??
Any companies or how to make it on my own!!

And is there any templates for the backside.

There's some tips on the wiki for this (http://wiki.dominionstrategy.com/index.php/Fan_Card_Creation_Guide#Printing). I personally just print them on "standard" 20lb laser paper and sleeve them with sleeves from sleevedominion.com (https://www.sleevedominion.com/). As far as templates for the back side, there's a scan (http://wiki.dominionstrategy.com/index.php/File:Card_back.jpg) on the wiki.
Title: Re: Dominion Card Image Generator
Post by: MrHiTech on April 17, 2020, 01:08:15 am
I’m on mobile and can't read what to separate multiple keywords with in Shardofhonor's fork. What do I separate multiple keywords with?
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on April 17, 2020, 02:33:27 am
I’m on mobile and can't read what to separate multiple keywords with in Shardofhonor's fork. What do I separate multiple keywords with?

Yeah, sorry - adjusting the generator for mobile devices is still on my list...

The additional keywords are separated by semicolon ;
Title: Re: Dominion Card Image Generator
Post by: Amuzet on May 12, 2020, 03:39:50 pm
I forget, did the second generator have Bold Names and Types? or was it only ever the original generator.

I do like the Bold text better!

EDIT: It was something weird with the session I had open. Is there a way to do both.
Title: Re: Dominion Card Image Generator
Post by: Amuzet on July 20, 2020, 08:00:43 am
Could you please add an option to the Second Color drop down split?
I really like how the Werewolf and Ghost Town looks on other type combinations.
(http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Werewolf.jpg)(http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Ghost_Town.jpg)
Even if it isn't the convention its a simple addition to the drop-down from what i've seen.
Unfortunately even a fresh clone I get off Git wont fully load the card on my computer.
I don't get any Card output localy, but I can see the modified drop-down menu.
It should work, I don't see any reason in the .js why it wouldn't.

index.html   Line: 260
Code: [Select]
                            <option value="18">Smaller Top</option>
                            <option value="1" selected="selected">Half</option>
                            <option value="19">Smaller Bottom</option>
                            <option value="12">Blend Night</option>

Edit: Look at that! It looks amazing!
(https://imgur.com/e1ZhkT8.png)
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on July 20, 2020, 04:03:37 pm
Could you please add an option to the Second Color drop down split?
I really like how the Werewolf and Ghost Town looks on other type combinations.

Great idea! Also useful for custom types. I've added it right away  ;)
Title: Re: Dominion Card Image Generator
Post by: herw on July 21, 2020, 11:09:08 am
Great Card Generator !

Does anybody have any tips on how to get them printed ??
Any companies or how to make it on my own!!

And is there any templates for the backside.
http://forum.dominion-welt.de/viewtopic.php?f=7&t=207
ciao herw
Title: Re: Dominion Card Image Generator
Post by: Amuzet on July 22, 2020, 09:12:24 am
To show you I've used what i suggested and will be printing to put them in the sleeve for my cards along with the  Witches made by u/colonel-o-popcorn on Reddit. (https://www.reddit.com/r/dominion/comments/hjwi11/witch_variants_for_every_expansion_day_7/)

Obviously Action-Reserve and Action-Reaction are just full second color.

My Take on the order of colors, second type denoting Textbox color.
Duration, Action, Treasure, Reserve, Victory, Curse, Reaction, Shelter, Night
(https://imgur.com/69nAXlX.jpg)

I feel like Distant Lands (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Distant%20Lands&description=Put%20this%20on%20your%20Tavern%20mat.%0A%0A%0A-%0A%0A%0AWorth%204%25%20if%20on%20your%20Tavern%20mat%20at%20the%20end%20of%20the%20game%20(otherwise%20worth%200%25).&type=Action%20-%20Reserve%20-%20Victory&credit=Illustration%3A%20Matthias%20Catrein&creator=%C2%A9%202020%20Rio%20Grande%20Games&price=%245&preview=&type2=&color2split=12&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fc%2Fc4%2FDistant_LandsArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F5%2F5e%2FAdventures_icon.png&custom-icon=&color0=5&color1=3&size=0) might look better Victory over Reserve
Title: Re: Dominion Card Image Generator
Post by: spineflu on July 22, 2020, 09:40:05 am
while we're tossing in feature requests, would it be possible to do a "swap colors" button? the number of times i've put the colors in in the wrong order has been... idk probably approaching triple digits now.
Title: Re: Dominion Card Image Generator
Post by: Dominionaer on July 26, 2020, 02:00:40 pm
Questions about line breaking:
1) How do i get equivalent of HTML's &nbsp; (non-breakable space) ?
2) Does a space gets counted to word length? Saw several times there is enough room in a line for a word appearing on next line. Replacing the trailing space = %20 with a RETURN = %2C%0A helps.
Title: Re: Dominion Card Image Generator
Post by: D782802859 on August 19, 2020, 10:54:51 am
I'm experiencing an issue where if you format a non-plus $ amount with a period at the end, it remains in the large coin size on the card. Here's an example.

(https://i.imgur.com/GwrRYoX.png?1)
Title: Re: Dominion Card Image Generator
Post by: spheremonk on September 01, 2020, 11:17:43 am
You just need to break the lines up differently so there is text (any text) on the same line as the $.


(https://abload.de/img/cardaakau.png)


Or could add a non-breaking space (invisible text) to trick the program, but I'm not competent to explain how to do that.

(I guess you could copy it from here: https://shardofhonor.github.io/dominion-card-generator/?title=&description=Gain%20a%20card%20costing%20up%20to%20%245.%20%E2%80%89&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=&expansion=&custom-icon=&color0=0&color1=0&size=0).


(https://abload.de/img/cardu4kio.png)



Title: Re: Dominion Card Image Generator
Post by: grrgrrgrr on September 05, 2020, 06:52:28 am
It would also be nice if there was a button that generates an URL of the generator with the changes you've made being preserved. This would be very useful for the Card Updating Contest that has began recently.
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on September 28, 2020, 08:57:08 am
It would also be nice if there was a button that generates an URL of the generator with the changes you've made being preserved. This would be very useful for the Card Updating Contest that has began recently.
Bookmarking the URL should do the trick. Or copy and pasting it.
All settings are just appended to the URL as additional parameters. So if you open the link again, they are still there.
Using the same method, you can also build your own templates  ;)
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on September 28, 2020, 10:44:56 am
while we're tossing in feature requests, would it be possible to do a "swap colors" button? the number of times i've put the colors in in the wrong order has been... idk probably approaching triple digits now.

The button is there now  ;)
And sorry for the late reply. I'm currently not so active...
Title: Re: Dominion Card Image Generator
Post by: spineflu on September 28, 2020, 11:34:48 am
while we're tossing in feature requests, would it be possible to do a "swap colors" button? the number of times i've put the colors in in the wrong order has been... idk probably approaching triple digits now.

The button is there now  ;)
And sorry for the late reply. I'm currently not so active...
Thank you so much!
Title: Re: Dominion Card Image Generator; about images
Post by: Shael on December 11, 2020, 01:50:25 pm
Hi, I whant to know what is the conditions needed by an image so that it can be used.
I use an image from an image host and even if I can foud my iage with the URL, it don't work on the card image generator.
I also notice the same proble with the heavy images but it's probably not the same problem.
The URL of my image is https://www.zupimages.net/up/20/50/szyl.png.
I also want to know if the possibilites to import images dirrectly form our computer is an ongoing project.
Thank you for evrything you did on this website, it help me a lot for card-making.
Title: Re: Dominion Card Image Generator
Post by: Timinou on December 11, 2020, 01:54:20 pm
Are you using Shard of Honor's card image generator?

I tried using it today and there seems to be a bug.  I can't upload images and the fonts are off.  (EDIT: Seems to be working fine now)

You can try to use the original version: https://shemitz.net/static/dominion3/
Title: Re: Dominion Card Image Generator
Post by: Violet CLM on December 11, 2020, 03:57:53 pm
Shael: I tried your image URL with Shard's version and it works for me (https://shardofhonor.github.io/dominion-card-generator/?title=&description=&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0.56&picture-zoom=1.3&picture=https%3A%2F%2Fwww.zupimages.net%2Fup%2F20%2F50%2Fszyl.png&expansion=&custom-icon=&color0=0&color1=0&size=0), but it does take several seconds to load that particular image. Maybe because I'm in the US and I'm guessing zupimages is in France or somewhere.

The main issue with allowing direct image upload from computers is that it makes it hard to distribute custom cards. Currently, once you've finished setting up all the properties of your custom card, all those properties are encoded directly in the current URL, so you can copy it or bookmark it or whatever. That doesn't work so well if the image came from your computer and doesn't have a permanent address on the internet. Here's shard's github issue about it, though. (https://github.com/shardofhonor/dominion-card-generator/issues/5)
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on December 11, 2020, 06:04:42 pm
Depending on the security settings, modern browsers prevent direct inclusion and use of external link resources in websites.
I am using https://cors-anywhere.herokuapp.com/ (https://cors-anywhere.herokuapp.com/) to overcome this and prevent a tainted canvas. Unfortunately, this service was unavailable today but does work again.

Additionally, I've now added buttons for direct image usage. This allows to use local files within the generator. These images are never uploaded to any server and stay on your local computer.
But because of that, the limitations mentioned by Violet CLM apply: Bookmarking and sharing does not work in these cases, as the images are not included.
Title: Re: Dominion Card Image Generator
Post by: Shael on December 12, 2020, 05:43:05 am
Shael: I tried your image URL with Shard's version and it works for me (https://shardofhonor.github.io/dominion-card-generator/?title=&description=&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0.56&picture-zoom=1.3&picture=https%3A%2F%2Fwww.zupimages.net%2Fup%2F20%2F50%2Fszyl.png&expansion=&custom-icon=&color0=0&color1=0&size=0), but it does take several seconds to load that particular image. Maybe because I'm in the US and I'm guessing zupimages is in France or somewhere.

The main issue with allowing direct image upload from computers is that it makes it hard to distribute custom cards. Currently, once you've finished setting up all the properties of your custom card, all those properties are encoded directly in the current URL, so you can copy it or bookmark it or whatever. That doesn't work so well if the image came from your computer and doesn't have a permanent address on the internet. Here's shard's github issue about it, though. (https://github.com/shardofhonor/dominion-card-generator/issues/5)

Thank you verry much for what you did.
You right, that's probably because of the image or my computer if I can't load it.
Title: Re: Dominion Card Image Generator
Post by: Shael on January 30, 2021, 06:51:53 am
Hi !
Since the last update, I've lost my favorites. Do you know if there is a way to regain them or if they are lost forever.
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on January 30, 2021, 11:08:34 am
Hi !
Since the last update, I've lost my favorites. Do you know if there is a way to regain them or if they are lost forever.

There is no account functionality behind it. Means if you delete your cookies an local browser storage, it is gone. Sorry.
Title: Re: Dominion Card Image Generator
Post by: Timinou on January 30, 2021, 12:10:51 pm
Hi !
Since the last update, I've lost my favorites. Do you know if there is a way to regain them or if they are lost forever.

There is no account functionality behind it. Means if you delete your cookies an local browser storage, it is gone. Sorry.

Where could one find the cookies to create a backup?
Title: Re: Dominion Card Image Generator
Post by: scolapasta on January 30, 2021, 12:14:48 pm
Hi !
Since the last update, I've lost my favorites. Do you know if there is a way to regain them or if they are lost forever.

There is no account functionality behind it. Means if you delete your cookies an local browser storage, it is gone. Sorry.

In lieu of account functionality, what do you think about adding an import / export functionality* for favorites? People would still have to manually do this, but it would effectively be like an account for which the user themselves manage storage.

* export clearly being easier to save all links to a text file; import would likely want some sort of validation

And it would allow people to pass sets of cards, if they'd like, e.g. to allow other users to easily make tweaks to fan expansions.
Title: Re: Dominion Card Image Generator
Post by: silverspawn on February 01, 2021, 03:51:27 pm
I just keep a txt file where I save the urls. Since all data is in the url, that is a complete record.
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on February 05, 2021, 03:51:48 pm
In lieu of account functionality, what do you think about adding an import / export functionality* for favorites? People would still have to manually do this, but it would effectively be like an account for which the user themselves manage storage.

* export clearly being easier to save all links to a text file; import would likely want some sort of validation

I've added a simple export/import functionality. It just takes the favorite-urls as they are out of the browsers local storage and stores them in a file.
I've skipped the validation part during import for now, so if you want to mess with it: everything stays on your own computer  ;D
Title: Re: Dominion Card Image Generator
Post by: scolapasta on February 05, 2021, 04:05:00 pm
In lieu of account functionality, what do you think about adding an import / export functionality* for favorites? People would still have to manually do this, but it would effectively be like an account for which the user themselves manage storage.

* export clearly being easier to save all links to a text file; import would likely want some sort of validation

I've added a simple export/import functionality. It just takes the favorite-urls as they are out of the browsers local storage and stores them in a file.
I've skipped the validation part during import for now, so if you want to mess with it: everything stays on your own computer  ;D

Perfect!
Title: Re: Dominion Card Image Generator
Post by: DunnoItAll on February 07, 2021, 10:45:26 am
The fonts routinely get all messed up for me with this. It will work fine, and then the next time I need to use it, the fonts are all weird.  Here's one where the title, type, and the numerals are all in a strange, different font (maybe just non-bold version?). I've tried everything I know and this just keeps happening.  I just have to wait a few hours and then sometimes it will work again. Sometimes it will work if I refresh 10 times in a row, sometimes it doesn't matter how many times I refresh.

Is there something I can install locally? I've already tried installing some fonts that were recommended to install locally on discord.

Also, this happens to me on multiple computer in multiple browsers.

(https://i.imgur.com/mKqEr8j.png)
Title: Re: Dominion Card Image Generator
Post by: pewp3w on February 09, 2021, 05:45:34 am
I have encountered the same problem as well today, I have no clue why it happens and found no way to fix it. Other browser don't help, refreshing helps...sometimes?

Title: Re: Dominion Card Image Generator
Post by: spheremonk on February 10, 2021, 01:52:45 pm
For the last few days, across four different browsers (Chrome, Safari, Explorer, Firefox) on three devices, I am having the same font issues as the two posters above. In addition, no images will load (neither will the expansion icons).
Title: Re: Dominion Card Image Generator
Post by: Gubump on February 11, 2021, 12:58:58 am
I have joined the ranks of having this Font issue.
Title: Re: Dominion Card Image Generator
Post by: gambit05 on February 11, 2021, 01:54:40 am
I don't know if it is of any help (I am no expert), but I noticed a few things:

- When I open the Card Image Generator, and the correct Fonts are not displayed, in the legend (bottom left) some symbols are displayed in upper case (usually they are in lower case). This is easily visible for the @ Symbol for Debt, which is an encircled "A" instead of "a" when it doesn't work properly.

- In Windows with the Chrome Browser, when I right click inside the generator (outside any text fields) and then go to "Inspect", in the following window near the top right corner, there is a red circle (with a cross and a 3 next to it). When I click on it, I get the following information:

Failed to load resource: the server responded with a status of 403 (Forbidden) etc...

The three failures are all related to Font types. The problem appears to be to load the required sources.
Title: Re: Dominion Card Image Generator
Post by: DunnoItAll on February 11, 2021, 11:29:13 am
I think I found a temporary fix?

Looking through the source file, it seemed to be font file located at this link that were causing the problem:

https://cors-anywhere.herokuapp.com/https://shemitz.net/static/dominion3/

I loaded that link in chrome and it had a button to click to give temporary access. Not sure what it means, but I clicked it, it granted temporary access, and now when I reload the generator, the right fonts show up.
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on February 18, 2021, 04:34:36 pm
Hi Folks, sorry for the issues.
The reason was indeed because of the cors-anywhere server I've used, which allows the generator to load and embed arbitrary resources from external websites, like the images and the fonts.
I have now set up my own server for this and it should run more reliably now.

Thanks to DunnoItAll for the temporary solution (http://forum.dominionstrategy.com/index.php?topic=16622.msg862141#msg862141) in the meantime!
Title: Re: Dominion Card Image Generator
Post by: Violet CLM on February 19, 2021, 03:22:07 am
Oh, that's interesting. I know my web hosting is somewhere in the process of being transferred to another company... I wonder if that's involved somehow, if the remote access to the fonts on my site was suddenly messing up for people. Glad to hear the problem's been avoided now though.
Title: Re: Dominion Card Image Generator
Post by: NoMoreFun on February 20, 2021, 03:13:13 am
I forgot whether Donald X. or LastFootnote said it, but they have set a rule that official cards won't have more than 7 lines of text with a certain font size, and landscapes won't have more than 3 lines of text with a certain font size. It may be worth putting that in as an optional limit.
Title: Re: Dominion Card Image Generator
Post by: Gubump on February 24, 2021, 08:13:45 pm
(https://i.imgur.com/2HmzvzE.png)

If you try to have a card with multiple costs, even just (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) and a (http://wiki.dominionstrategy.com/images/thumb/7/7a/Potion.png/9px-Potion.png), the type gets over-indented, as shown above.
Title: Re: Dominion Card Image Generator
Post by: spineflu on February 25, 2021, 12:07:37 pm
(https://i.imgur.com/2HmzvzE.png)

If you try to have a card with multiple costs, even just (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) and a (http://wiki.dominionstrategy.com/images/thumb/7/7a/Potion.png/9px-Potion.png), the type gets over-indented, as shown above.

so
it looks like it's centering the text on the bar where there isn't prices, set expansion symbols, etc;
A suggestion for fixing it is: when including a price, include a transparent spacer of equal width on the opposite side. It'll force font sizes a little smaller (boo) but will avoid the largely off-center issue (yay).

In the meantime, you can manually force centering by adding spaces to the card types.
Title: Re: Dominion Card Image Generator
Post by: Gubump on March 31, 2021, 12:59:52 pm
Hi Folks, sorry for the issues.
The reason was indeed because of the cors-anywhere server I've used, which allows the generator to load and embed arbitrary resources from external websites, like the images and the fonts.
I have now set up my own server for this and it should run more reliably now.

Thanks to DunnoItAll for the temporary solution (http://forum.dominionstrategy.com/index.php?topic=16622.msg862141#msg862141) in the meantime!

Font issues are back again, and since the cors-anywhere server is no longer being used, DunnoItAll's temporary solution no longer fixes it.
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 31, 2021, 04:06:18 pm
Hi Folks, sorry for the issues.
The reason was indeed because of the cors-anywhere server I've used, which allows the generator to load and embed arbitrary resources from external websites, like the images and the fonts.
I have now set up my own server for this and it should run more reliably now.

Thanks to DunnoItAll for the temporary solution (http://forum.dominionstrategy.com/index.php?topic=16622.msg862141#msg862141) in the meantime!

Font issues are back again, and since the cors-anywhere server is no longer being used, DunnoItAll's temporary solution no longer fixes it.

Got the mail today from heroku, that the monthly free server capacity is used up. Tomorrow it should work again.
For the next month, I try to implement some improvements to reduce web-request and save server capacity so it lasts the whole month...
Title: Re: Dominion Card Image Generator
Post by: Shael on April 22, 2021, 04:50:33 pm
Howdy !
As you'll probably notice; I had fun with the generator (it's verry cool, I'll probably never create all of my card without you, for the best and the worst) and that's when I nocie somthing: I haven't made a lot of progarmation but it seem like there is probably a litle differenc between the size of the textbox in the generator and the one in the actual game. An example with Royal Seal (I let you guess witch one is fan made):
(http://wiki.dominionstrategy.com/images/d/dd/Royal_Seal.jpg) (https://www.zupimages.net/up/21/16/7abz.png)
So, it's not a big deal as you see but it's just to report it.
Thank you for your job!
By the way, I see that you have you personnal list of fan card. That's nice, I'll check that, I promise!
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on April 23, 2021, 01:00:33 pm
Howdy !
As you'll probably notice; I had fun with the generator (it's verry cool, I'll probably never create all of my card without you, for the best and the worst) and that's when I nocie somthing: I haven't made a lot of progarmation but it seem like there is probably a litle differenc between the size of the textbox in the generator and the one in the actual game. An example with Royal Seal (I let you guess witch one is fan made)

Hi, thanks. Actually, the textbox is the same size, if you resize the images.
1st is remade (https://shardofhonor.github.io/dominion-card-generator/?title=Royal%20Seal&description=%242%0A-%0AWhile%20this%20is%20in%20play%2C%20when%20you%20gain%20a%20card%2C%20you%20may%20put%20that%20card%20onto%20your%20deck.&type=Treasure&credit=Illustration%3A%20Jason%20Slavin&creator=%C2%A9%202016%20Rio%20Grande%20Games&price=%245&preview=%242&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F3%2F38%2FRoyal_SealArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Ff%2Ffb%2FProsperity_icon.png&custom-icon=&color0=1&color1=0&size=0) with the generator, second the original from the wiki (only given a border), and last is yours - I like the seal  ;D
Arguably, there are some minor differences with coloring and font thickness, but it is quite similar.

(https://i.imgur.com/gYx3cEd.jpg)


(https://i.imgur.com/2HmzvzE.png)

If you try to have a card with multiple costs, even just (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) and a (http://wiki.dominionstrategy.com/images/thumb/7/7a/Potion.png/9px-Potion.png), the type gets over-indented, as shown above.

so
it looks like it's centering the text on the bar where there isn't prices, set expansion symbols, etc;
A suggestion for fixing it is: when including a price, include a transparent spacer of equal width on the opposite side. It'll force font sizes a little smaller (boo) but will avoid the largely off-center issue (yay).

In the meantime, you can manually force centering by adding spaces to the card types.

Thanks. I've noted the issue (https://github.com/shardofhonor/dominion-card-generator/issues/10). As long as it's not fixed, some spaces here and there always help to improve centering and spacing.  ;)
Title: Re: Dominion Card Image Generator
Post by: silverspawn on April 29, 2021, 03:45:26 pm
Has custom control over boldness ever been implemented? I've CTRL+F'd the thread and it has been suggested several times.
Title: Re: Dominion Card Image Generator
Post by: silverspawn on April 29, 2021, 03:52:40 pm
Relatedly, I have never been able to affect any change in my text with the 'additional bolded keywords' feature
Title: Re: Dominion Card Image Generator v1.5
Post by: Shard of Honor on April 29, 2021, 04:36:14 pm
Has custom control over boldness ever been implemented? I've CTRL+F'd the thread and it has been suggested several times.
No, I have not implemented it.

Relatedly, I have never been able to affect any change in my text with the 'additional bolded keywords' feature
You can look at the example here:
Dumb example to showcase some of the new features (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Delivery&description=%0A%2B1%20Slice%0A%0A-%0A%0AWhen%20you%20buy%20this%2C%20you%20may%20overpay%20for%20it.%20For%20each%20%241%20you%20overpaid%3A%20%2B1%20Pizza%0A%0A-%0A%0AIf%20another%20player%20gains%20a%20Pizza%2C%20you%20may%20discard%20this%20for%20%2B1%20Slice%0A&type=%20Action%20-%20Reaction%20%20&credit=Illustration%3A%20Google%20Images&creator=v1%20EXAMPLE&price=%242%2B&preview=&type2=&color2split=19&boldkeys=Pizza%3BSlice&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fsmokeyspizza.net%2Fwp-content%2Fuploads%2F2014%2F11%2FPizza-Delivery.jpg&expansion=https%3A%2F%2Fstatic.thenounproject.com%2Fpng%2F152-200.png&color0=3&color1=1&size=0)
Title: Re: Dominion Card Image Generator
Post by: spineflu on April 30, 2021, 08:19:37 am
Relatedly, I have never been able to affect any change in my text with the 'additional bolded keywords' feature

it has to be of the +<number> <keyword> format, which took me a second too
Title: Re: Dominion Card Image Generator
Post by: silverspawn on April 30, 2021, 12:59:05 pm
Relatedly, I have never been able to affect any change in my text with the 'additional bolded keywords' feature

it has to be of the +<number> <keyword> format, which took me a second too

Good to know. Unfortunately, that precludes my indended usage of bolding "Setup:"
Title: Re: Dominion Card Image Generator
Post by: emtzalex on April 30, 2021, 04:54:35 pm
Relatedly, I have never been able to affect any change in my text with the 'additional bolded keywords' feature

it has to be of the +<number> <keyword> format, which took me a second too

Good to know. Unfortunately, that precludes my indended usage of bolding "Setup:"

I believe that would be inconsistent with the official cards, which do not seem to bold "Setup:" when it is used (see, e.g., Trade Route).
Title: Re: Dominion Card Image Generator
Post by: mxdata on May 01, 2021, 01:40:48 am
Relatedly, I have never been able to affect any change in my text with the 'additional bolded keywords' feature

it has to be of the +<number> <keyword> format, which took me a second too

Oh!  I'd started thinking that function must be broken.  Thanks!
Title: Re: Dominion Card Image Generator
Post by: Shael on May 15, 2021, 10:37:36 am
Howdy !
As you'll probably notice; I had fun with the generator (it's verry cool, I'll probably never create all of my card without you, for the best and the worst) and that's when I nocie somthing: I haven't made a lot of progarmation but it seem like there is probably a litle differenc between the size of the textbox in the generator and the one in the actual game. An example with Royal Seal (I let you guess witch one is fan made)

Hi, thanks. Actually, the textbox is the same size, if you resize the images.
1st is remade (https://shardofhonor.github.io/dominion-card-generator/?title=Royal%20Seal&description=%242%0A-%0AWhile%20this%20is%20in%20play%2C%20when%20you%20gain%20a%20card%2C%20you%20may%20put%20that%20card%20onto%20your%20deck.&type=Treasure&credit=Illustration%3A%20Jason%20Slavin&creator=%C2%A9%202016%20Rio%20Grande%20Games&price=%245&preview=%242&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F3%2F38%2FRoyal_SealArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Ff%2Ffb%2FProsperity_icon.png&custom-icon=&color0=1&color1=0&size=0) with the generator, second the original from the wiki (only given a border), and last is yours - I like the seal  ;D
Arguably, there are some minor differences with coloring and font thickness, but it is quite similar.

OK, thank you for your job!
Title: Re: Dominion Card Image Generator
Post by: Shael on May 16, 2021, 07:15:49 am
Hey, I have an issue with the Card generator but I always forget to report it:
On the cards, where you wright a +x% (the vanilla bonus) it apear at the same size of a normal x% (so the size of a victory card).
An example with a "normal" wording of salt the earth:
(https://www.zupimages.net/up/21/19/i384.png)
you can acces to the card with the link here (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Salt%20the%20earth&description=%2B1%25%0A%C3%89cartez%20une%20carte%20Victoire%20de%20la%20r%C3%A9serve.&type=%C3%89v%C3%A8nement&credit=illustration%3A%20Raina%20Kuptz&creator=%C2%A92016%20Rio%20Grande%20Game&price=%244&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F3%2F32%2FSalt_the_EarthArt.jpg&expansion=https%3A%2F%2Fimage.flaticon.com%2Ficons%2Fsvg%2F1422%2F1422756.svg&custom-icon=&color0=0&color1=0&size=1) if you want to try it on your side.
(I work on traduction so it's normal that the text on the card isn't in english)

And, btw, the previous problem of textbox's size also seem to exsit with landscape.
I don't have some obvious example for now but I'll make a reply when I have them.
Title: Re: Dominion Card Image Generator
Post by: spineflu on May 16, 2021, 01:55:26 pm
add a space between the number and the symbol
Title: Re: Dominion Card Image Generator
Post by: Shael on May 24, 2021, 05:06:03 pm
add a space between the number and the symbol
well, we say that a picture worth thousand words right ?
(http://wiki.dominionstrategy.com/images/6/66/Salt_the_Earth.jpg)(https://www.zupimages.net/up/21/21/uwa1.png)
so, indeed it's better and thank for the tips but it's obviously still a bug...
Title: Re: Dominion Card Image Generator
Post by: Gardoomalion on September 22, 2021, 05:09:11 pm
Hi.
In Russia, only the base and Intrigue were published. I want to translate all expansions.

Please tell me how to change the Russian font in the name and types? Can I make the font bold?
Is there a way to put an arrow on the traveller if I indicate the type in Russian?
Russian Page (https://shardofhonor.github.io/dominion-card-generator/index.html?title=%D0%9F%D0%B0%D0%B6&description=%2B1%20%D0%BA%D0%B0%D1%80%D1%82%D0%B0%0A%2B1%20%D0%B4%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D0%B5%0A-%0A%D0%A1%D0%B1%D1%80%D0%BE%D1%81%D0%B8%D0%B2%20%D1%8D%D1%82%D1%83%20%D0%BA%D0%B0%D1%80%D1%82%D1%83%20%D0%B8%D0%B7%20%D0%B8%D0%B3%D1%80%D1%8B%2C%20%D0%BC%D0%BE%D0%B6%D0%B5%D1%82%D0%B5%20%D0%BE%D0%B1%D0%BC%D0%B5%D0%BD%D1%8F%D1%82%D1%8C%20%D0%B5%D1%91%20%D0%BD%D0%B0%20%D0%9E%D1%85%D0%BE%D1%82%D0%BD%D0%B8%D0%BA%D0%B0%20%D0%B7%D0%B0%20%D1%81%D0%BE%D0%BA%D1%80%D0%BE%D0%B2%D0%B8%D1%89%D0%B0%D0%BC%D0%B8.&type=%D0%94%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D0%B5%20-%20%D0%9F%D1%80%D0%B8%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B5%D1%86&credit=&creator=&price=%242&preview=&type2=&color2split=1&boldkeys=%D0%BA%D0%B0%D1%80%D1%82%D0%B0%3B%20%D0%B4%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D0%B5&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fa%2Fac%2FPageArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F5%2F5e%2FAdventures_icon.png&custom-icon=&color0=0&color1=0&size=0)
(https://i.imgur.com/qzO4LFI.png)

If you need to create a base card, the image is positioned incorrectly.
Russian Silver (https://shardofhonor.github.io/dominion-card-generator/index.html?title=%D0%A1%D0%B5%D1%80%D0%B5%D0%B1%D1%80%D0%BE&description=&type=%D0%A1%D0%BE%D0%BA%D1%80%D0%BE%D0%B2%D0%B8%D1%89%D0%B5&credit=&creator=&price=%243&preview=%242&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F3%2F30%2FSilverArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fb%2Fb0%2FDominion_icon.png&custom-icon=&color0=1&color1=0&size=3)
(https://i.imgur.com/GxMtthB.png)

It is necessary to extend the picture vertically so that it is displayed correctly in the generator.
(https://i.imgur.com/YOou7Jg.jpg) (https://i.imgur.com/yRDGNTV.png)
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on September 23, 2021, 05:15:46 pm
add a space between the number and the symbol
so, indeed it's better and thank for the tips but it's obviously still a bug...

As said before, I suggest using invisible characters (https://en.wikipedia.org/wiki/Non-breaking_space) to trick the generator. It's a hack, but it's working (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Salt%20the%20Earth&description=%0A%0A%2B1%25%20%E2%80%89%0A%0ATrash%20a%20Victory%20Card%20from%20the%20Supply.%0A%0A&type=%20Event%20&credit=Illustration%3A%20%20Raina%20Kuptz&creator=%C2%A9%202017%20Rio%20Grande%20Games&price=%244&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F3%2F32%2FSalt_the_EarthArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fthumb%2F2%2F2a%2FEmpires_icon.png%2F17px-Empires_icon.png&custom-icon=&color0=0&color1=0&size=1).

... you can trick the generator into thinking, that there is other text in the line by using invisible special characters like the non-breaking-space ...



Please tell me how to change the Russian font in the name and types? Can I make the font bold?

Also only two hacky solutions for now:
You can either use your browsers developer tools (F12), navigate to the style.css and there to the @font-face rule for TrajanPro. It first tries to load that from your local computer, where it says src: local("Trajan Pro Bold"). You can change that to any font name that you have installed and the next time the image is redrawn your browser should fetch that font from your local computer. Such changes are lost, when you refresh the webpage.
Alternatively, you can install any font on your computer with the name "Trajan Pro Bold", so it is used instead.

Is there a way to put an arrow on the traveller if I indicate the type in Russian?
Russian Page (https://shardofhonor.github.io/dominion-card-generator/index.html?title=%D0%9F%D0%B0%D0%B6&description=%2B1%20%D0%BA%D0%B0%D1%80%D1%82%D0%B0%0A%2B1%20%D0%B4%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D0%B5%0A-%0A%D0%A1%D0%B1%D1%80%D0%BE%D1%81%D0%B8%D0%B2%20%D1%8D%D1%82%D1%83%20%D0%BA%D0%B0%D1%80%D1%82%D1%83%20%D0%B8%D0%B7%20%D0%B8%D0%B3%D1%80%D1%8B%2C%20%D0%BC%D0%BE%D0%B6%D0%B5%D1%82%D0%B5%20%D0%BE%D0%B1%D0%BC%D0%B5%D0%BD%D1%8F%D1%82%D1%8C%20%D0%B5%D1%91%20%D0%BD%D0%B0%20%D0%9E%D1%85%D0%BE%D1%82%D0%BD%D0%B8%D0%BA%D0%B0%20%D0%B7%D0%B0%20%D1%81%D0%BE%D0%BA%D1%80%D0%BE%D0%B2%D0%B8%D1%89%D0%B0%D0%BC%D0%B8.&type=%D0%94%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D0%B5%20-%20%D0%9F%D1%80%D0%B8%D0%BA%D0%BB%D1%8E%D1%87%D0%B5%D0%BD%D0%B5%D1%86&credit=&creator=&price=%242&preview=&type2=&color2split=1&boldkeys=%D0%BA%D0%B0%D1%80%D1%82%D0%B0%3B%20%D0%B4%D0%B5%D0%B9%D1%81%D1%82%D0%B2%D0%B8%D0%B5&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fa%2Fac%2FPageArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F5%2F5e%2FAdventures_icon.png&custom-icon=&color0=0&color1=0&size=0)

Currently, there is no option to tick to have the traveller arrow, but I've added all current translations from the wiki (http://wiki.dominionstrategy.com/index.php/Traveller#In_other_languages) as well as your translation. Russian should work now, too.

If you need to create a base card, the image is positioned incorrectly.
It is necessary to extend the picture vertically so that it is displayed correctly in the generator.

You've got your solution there  ;)
Title: Re: Dominion Card Image Generator
Post by: Freddy10 on September 23, 2021, 09:26:07 pm
It is necessary to extend the picture vertically so that it is displayed correctly in the generator.

I had the same problem. I think the space assigned to the image is wider than needed. Another trick is to use F12 to change the minimum value of the zoom slider to allow smaller values
Title: Re: Dominion Card Image Generator
Post by: Freddy10 on October 04, 2021, 06:59:15 pm
add a space between the number and the symbol
well, we say that a picture worth thousand words right ?
(http://wiki.dominionstrategy.com/images/6/66/Salt_the_Earth.jpg)(https://www.zupimages.net/up/21/21/uwa1.png)
so, indeed it's better and thank for the tips but it's obviously still a bug...
It's fixed now  :)
Title: Re: Dominion Card Image Generator
Post by: faust on October 12, 2021, 02:13:24 am
Random complaint: The Potion symbol for cost doesn't mix well with the overpay +.

It's a very specific interaction of course.
Title: Re: Dominion Card Image Generator
Post by: Amuzet on October 12, 2021, 03:43:22 am
Am I CRAZY?
(https://i.imgur.com/hQfSPpG.jpg)
 ??? Is the Name and Type text on this Times New Roman, and not the official Dominion Font?
 :o Its not happening anymore, but I exported this yesterday without noticing.
 ??? :o Its happening sometimes, do I just have to reload the generator?
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on October 13, 2021, 12:16:21 pm
Am I CRAZY?
(https://i.imgur.com/hQfSPpG.jpg)
 ??? Is the Name and Type text on this Times New Roman, and not the official Dominion Font?
 :o Its not happening anymore, but I exported this yesterday without noticing.
 ??? :o Its happening sometimes, do I just have to reload the generator?

It looks like one of the slightly different fallback-fonts, when loading the original font fails.
Normally reloading does the trick.



Random complaint: The Potion symbol for cost doesn't mix well with the overpay +.
It's a very specific interaction of course.

Never tried that corner case myself. Yeah, white text is hard to read there, but actually numbers on the potion icon always look weird.
If you really need things like multiple potion costs and overpay for them, I'd suggest you do that in the picture editing software of your choice.
Title: Re: Dominion Card Image Generator
Post by: tsunemi_i on October 22, 2021, 09:33:44 am
Hi. I'm very grateful for the awesome image create tool provided!

Now, for the first time in a few months, I have resumed making cards that I was considering by using this generator.
However, the font of cost or the numbers displayed on the icon are thinner than when I used it before. It seems that the fonts on the cards are loaded correctly, but only the weight of those letters is different. Repeated reloading and tried various things, but it was not going well.

(https://i.imgur.com/zdv0uRx.png)
For reference, I present images that can be compared. The left card image of Royal Seal was created as a example with the current generator, and the card image in the making with the pink frame on the right had been created and saved in the past.

The previous font is more similar to the original, so I would like to create using the bolder font. Is there a solution?
Title: Re: Dominion Card Image Generator
Post by: Fragasnap on October 25, 2021, 06:37:46 am
Hi. I'm very grateful for the awesome image create tool provided!

Now, for the first time in a few months, I have resumed making cards that I was considering by using this generator.
However, the font of cost or the numbers displayed on the icon are thinner than when I used it before. It seems that the fonts on the cards are loaded correctly, but only the weight of those letters is different. Repeated reloading and tried various things, but it was not going well.

...

The previous font is more similar to the original, so I would like to create using the bolder font. Is there a solution?
I am also having this issue with incorrect coin font on my Windows machine, regardless of browser (Firefox, Chrome, Internet Explorer), where I was not previously.  I have the Minion Pro font that is used officially.
I believe my Android phone loads the coin font correctly (maybe it is simply cached), but it does not load "Times New Roman" for the body text.
Title: Re: Dominion Card Image Generator
Post by: Freddy10 on October 25, 2021, 08:59:21 am
Hi. I'm very grateful for the awesome image create tool provided!

Now, for the first time in a few months, I have resumed making cards that I was considering by using this generator.
However, the font of cost or the numbers displayed on the icon are thinner than when I used it before. It seems that the fonts on the cards are loaded correctly, but only the weight of those letters is different. Repeated reloading and tried various things, but it was not going well.

...

The previous font is more similar to the original, so I would like to create using the bolder font. Is there a solution?
I am also having this issue with incorrect coin font on my Windows machine, regardless of browser (Firefox, Chrome, Internet Explorer), where I was not previously.  I have the Minion Pro font that is used officially.
I believe my Android phone loads the coin font correctly (maybe it is simply cached), but it does not load "Times New Roman" for the body text.

The problem with the first one is that currently the generator is using Minion Pro instead of Minion Std Black. Regarding the Times New Roman problem, that font is also a proprietary font, so in android is using another Sans Serif font 
Title: Re: Dominion Card Image Generator
Post by: tsunemi_i on October 29, 2021, 08:50:43 am
Hi. I'm very grateful for the awesome image create tool provided!

Now, for the first time in a few months, I have resumed making cards that I was considering by using this generator.
However, the font of cost or the numbers displayed on the icon are thinner than when I used it before. It seems that the fonts on the cards are loaded correctly, but only the weight of those letters is different. Repeated reloading and tried various things, but it was not going well.

...

The previous font is more similar to the original, so I would like to create using the bolder font. Is there a solution?
I am also having this issue with incorrect coin font on my Windows machine, regardless of browser (Firefox, Chrome, Internet Explorer), where I was not previously.  I have the Minion Pro font that is used officially.
I believe my Android phone loads the coin font correctly (maybe it is simply cached), but it does not load "Times New Roman" for the body text.

The problem with the first one is that currently the generator is using Minion Pro instead of Minion Std Black. Regarding the Times New Roman problem, that font is also a proprietary font, so in android is using another Sans Serif font

>> Fragasnap, Freddy10
Thanks for responses! I found that the coin font difference issue wasn't caused by the browser(bing, firefox, Chrome) that be using.
I wait quietly, hoping the generator will be fixed about it!
Title: Re: Dominion Card Image Generator
Post by: Gubump on December 12, 2021, 04:11:33 am
Recently, the generator has not been bolding the numbers in (http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png) symbols. Here's an image with what the cost currently looks like:
(https://dominion-township.weebly.com/uploads/1/3/6/2/136286056/arcade-v0-3_orig.png)
And here's an image with what the cost should look like:
(https://dominion-township.weebly.com/uploads/1/3/6/2/136286056/opulent-village-v0-3_orig.png)
Title: Re: Dominion Card Image Generator
Post by: exfret on January 22, 2022, 04:37:36 pm
Does the card image generator start to fail to load when you have too many cards saved or something? I have around 30-40 saved I think and it's not loading for me. However, I used a different browser with no cards saved and it loaded fine.
Title: Re: Dominion Card Image Generator
Post by: Violet CLM on February 28, 2022, 06:38:10 pm
Best I've been able to get so far (https://shardofhonor.github.io/dominion-card-generator/index.html?c0.0.0=1&c0.0.1=0.95&c0.0.2=0.85&c0.1.0=0.35&c0.1.1=0.3&c0.1.2=0.15&c0.2.0=0.9&c0.2.1=0.8&c0.2.2=0.7&c0.3.0=0.9&c0.3.1=0.8&c0.3.2=0.7&size=1) at mimicking the Ally color (https://dominion.games/images/cards/templates/ally.png).
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 02, 2022, 01:50:07 am
Best I've been able to get so far (https://shardofhonor.github.io/dominion-card-generator/index.html?c0.0.0=1&c0.0.1=0.95&c0.0.2=0.85&c0.1.0=0.35&c0.1.1=0.3&c0.1.2=0.15&c0.2.0=0.9&c0.2.1=0.8&c0.2.2=0.7&c0.3.0=0.9&c0.3.1=0.8&c0.3.2=0.7&size=1) at mimicking the Ally color (https://dominion.games/images/cards/templates/ally.png).
Thank you very much! I've added the color directly to the dropdowns and also added support for the Favor keyword (https://shardofhonor.github.io/dominion-card-generator/index.html?title=&description=some%20text%20Favors%20more%20text%202%20Favors%20text%20%0Atext%20%2B1%20Favor%20within%20text&type=Ally&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=&expansion=https%3A%2F%2Fdominion.games%2Fimages%2Felements%2Fallies-small.png&custom-icon=&color0=17&color1=0&size=1).
For example Plateau Shepherds do now work in the generator (https://shardofhonor.github.io/dominion-card-generator/index.html?title=Plateau%20Shepherds&description=When%20scoring%2C%20pair%20up%20your%20Favors%20with%20%0Acards%20you%20have%20costing%20%242%2C%20for%202%25%20per%20pair.&type=Ally&credit=Illustration%3A%20Matthias%20Catrein&creator=%C2%A9%202022%20Rio%20Grande%20Games&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F7%2F72%2FPlateau_ShepherdsArt.jpg&expansion=https%3A%2F%2Fdominion.games%2Fimages%2Felements%2Fallies-small.png&custom-icon=&color0=17&color1=0&size=1).
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 02, 2022, 01:54:30 am
Does the card image generator start to fail to load when you have too many cards saved or something? I have around 30-40 saved I think and it's not loading for me. However, I used a different browser with no cards saved and it loaded fine.
You can try exporting your saved cards and then clearing all website data and cookies for the site.
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on March 09, 2022, 12:38:45 pm
[...]
However, the font of cost or the numbers displayed on the icon are thinner than when I used it before. It seems that the fonts on the cards are loaded correctly, but only the weight of those letters is different. Repeated reloading and tried various things, but it was not going well.
[...]
The previous font is more similar to the original, so I would like to create using the bolder font. Is there a solution?
I am also having this issue with incorrect coin font on my Windows machine, regardless of browser (Firefox, Chrome, Internet Explorer), where I was not previously.  I have the Minion Pro font that is used officially.
I believe my Android phone loads the coin font correctly (maybe it is simply cached), but it does not load "Times New Roman" for the body text.
The problem with the first one is that currently the generator is using Minion Pro instead of Minion Std Black. Regarding the Times New Roman problem, that font is also a proprietary font, so in android is using another Sans Serif font

To tackle the ongoing font issues, I've added a feature today that allows changing the fonts used in the card.

Open the new font settings menu on the bottom left, type in the font name and the generator should prefer this font over the default font selection chain. Your font settings are remembered on your device. The entered font name has to be installed on your device locally with the exact same name.
On a computer, you can check available fonts in a text editor like Word or in the system settings. Android has system settings for fonts, too.
Title: Re: Dominion Card Image Generator
Post by: MrFrog on March 15, 2022, 02:07:51 pm
(https://i.ibb.co/2vLzfcT/Woodcutter.png)

Does anybody have a clue how to fix the position of the coin text?
I use Firefox and the font is set to Minion Pro.
Title: Re: Dominion Card Image Generator
Post by: Freddy10 on March 17, 2022, 08:01:30 am
(https://i.ibb.co/2vLzfcT/Woodcutter.png)

Does anybody have a clue how to fix the position of the coin text?
I use Firefox and the font is set to Minion Pro.
The font for the coins should be minion std black. That should have the right alignment
Title: Re: Dominion Card Image Generator
Post by: Shael on June 22, 2022, 03:07:08 pm
Hello, I have an issue with an image I want to have as an expansion icon
I've tried to put it from my computer and from internet too but none of them worked; here is the link: https://imgur.com/iddoQGH
Do you have any idea about why this in't working?
maybe the image is too wide...
Title: Re: Dominion Card Image Generator
Post by: spineflu on June 23, 2022, 06:43:41 pm
Hello, I have an issue with an image I want to have as an expansion icon
I've tried to put it from my computer and from internet too but none of them worked; here is the link: https://imgur.com/iddoQGH
Do you have any idea about why this in't working?
maybe the image is too wide...

worked for me: https://shardofhonor.github.io/dominion-card-generator/?title=&description=&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=&expansion=https%3A%2F%2Fi.imgur.com%2FiddoQGH.png&custom-icon=&color0=0&color1=0&size=0 (https://shardofhonor.github.io/dominion-card-generator/?title=&description=&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&picture=&expansion=https%3A%2F%2Fi.imgur.com%2FiddoQGH.png&custom-icon=&color0=0&color1=0&size=0)
Title: Re: Dominion Card Image Generator
Post by: Gubump on November 23, 2022, 07:23:18 pm
The Shard of Honor fork seems to have broken for me. It's hard to describe what's going on, but all of the buttons, text fields, etc. are spaced super far apart and don't work, and no images are being loaded. I've tried deleting Cache and Cookies, but that didn't work.

New info edit: It works in other browsers besides Firefox. When I right-click and select "Inspect" on Firefox, I see a JS error that says
Quote
Uncaught ReferenceError: initCardImageGenerator is not defined
    initialize https://shardofhonor.github.io/dominion-card-generator/index.html:38
    <anonymous> https://shardofhonor.github.io/dominion-card-generator/index.html:45

    initialize https://shardofhonor.github.io/dominion-card-generator/index.html:38
    <anonymous> https://shardofhonor.github.io/dominion-card-generator/index.html:45
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on December 12, 2022, 01:16:09 pm
The Shard of Honor fork seems to have broken for me. It's hard to describe what's going on, but all of the buttons, text fields, etc. are spaced super far apart and don't work, and no images are being loaded. I've tried deleting Cache and Cookies, but that didn't work.

New info edit: It works in other browsers besides Firefox. When I right-click and select "Inspect" on Firefox, I see a JS error that says
Quote
Uncaught ReferenceError: initCardImageGenerator is not defined
    initialize https://shardofhonor.github.io/dominion-card-generator/index.html:38
    <anonymous> https://shardofhonor.github.io/dominion-card-generator/index.html:45

    initialize https://shardofhonor.github.io/dominion-card-generator/index.html:38
    <anonymous> https://shardofhonor.github.io/dominion-card-generator/index.html:45

I just retried it in Firefox 107.0.1 and it did work fine.
You may want to delete not only the Cookies but also the Local Storage files of the site (attention: this also clears the favorites and any other stored settings).
Title: Re: Dominion Card Image Generator
Post by: Gubump on December 12, 2022, 04:17:42 pm
The Shard of Honor fork seems to have broken for me. It's hard to describe what's going on, but all of the buttons, text fields, etc. are spaced super far apart and don't work, and no images are being loaded. I've tried deleting Cache and Cookies, but that didn't work.

New info edit: It works in other browsers besides Firefox. When I right-click and select "Inspect" on Firefox, I see a JS error that says
Quote
Uncaught ReferenceError: initCardImageGenerator is not defined
    initialize https://shardofhonor.github.io/dominion-card-generator/index.html:38
    <anonymous> https://shardofhonor.github.io/dominion-card-generator/index.html:45

    initialize https://shardofhonor.github.io/dominion-card-generator/index.html:38
    <anonymous> https://shardofhonor.github.io/dominion-card-generator/index.html:45

I just retried it in Firefox 107.0.1 and it did work fine.
You may want to delete not only the Cookies but also the Local Storage files of the site (attention: this also clears the favorites and any other stored settings).

Thanks, but it fixed itself pretty shortly after I posted that comment.
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on December 13, 2022, 03:53:10 pm
Basic Support for Traits is here. For example "Shy (https://shardofhonor.github.io/dominion-card-generator/?title=Shy&description=At%20the%20start%20of%20your%20turn%2C%20you%20may%20discard%20%0Aone%20Shy%20card%20for%20%2B2%20Cards.&type=Trait&credit=Illustration%3A%20Jessi%20J&creator=%C2%A9%202023%20Rio%20Grande%20Games%20&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&traveller=true&trait=true&picture=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2F1%2F14%2FShyArt.jpg&expansion=http%3A%2F%2Fwiki.dominionstrategy.com%2Fimages%2Fb%2Fb8%2FPlunder_%2528expansion%2529_icon.png&custom-icon=&color0=18&color1=0&size=1)".

I'm not yet happy with the card resource images and the color, but at least it is working.
This is implemented using a new checkbox above the types, to switch on the Traits layout for landscape cards.
I did the same for the traveller arrow - so no need to include the actual type any more. But I kept that logic for backwards compatibility.
Title: Re: Dominion Card Image Generator
Post by: MinuteLake on December 17, 2022, 11:56:26 pm
I think a bug was introduced in the most recent update. I noticed that the Traveller arrow is added whether or not traveller=true or false in the URL. Example:

https://shardofhonor.github.io/dominion-card-generator/index.html?title=Example%20Card&description=This%20should%20not%20be%20a%20traveller.%20(traveller%3Dfalse%20in%20the%20URL)&type=Action&credit=&creator=&price=%242&preview=&type2=&color2split=1&boldkeys=&picture-x=-0.17&picture-y=-0.08&picture-zoom=1&traveller=false&trait=true&picture=&expansion=&custom-icon=&color0=0&color1=0&size=0

Notice that traveller=false in the URL yet the traveller renders. This happens every time you save a URL (so even if you uncheck it, which updates it to traveller=false, it will be true next time you load the same URL.) I suspect it's because the code checks for the existence of traveller query param but not whether it is true/false: https://github.com/shardofhonor/dominion-card-generator/commit/947d1ef24cf43dc47822861b605686309b8ada1d#diff-471eee65442e7559b8238612ee2d63fccce7757d0f9c4165ff6222ed82134ef5R1225
Title: Re: Dominion Card Image Generator
Post by: Shard of Honor on December 20, 2022, 03:56:14 am
I think a bug was introduced in the most recent update. I noticed that the Traveller arrow is added whether or not traveller=true or false in the URL.
[...]
Notice that traveller=false in the URL yet the traveller renders. This happens every time you save a URL (so even if you uncheck it, which updates it to traveller=false, it will be true next time you load the same URL.) I suspect it's because the code checks for the existence of traveller query param but not whether it is true/false: https://github.com/shardofhonor/dominion-card-generator/commit/947d1ef24cf43dc47822861b605686309b8ada1d#diff-471eee65442e7559b8238612ee2d63fccce7757d0f9c4165ff6222ed82134ef5R1225

Thanks! Yes, that was the case. Fixed the issue.
Title: Re: Dominion Card Image Generator
Post by: BioRules on February 13, 2023, 11:07:56 pm
I've been working with the generator and have been having an issue where sometimes adding a $X amount into the text when there isn't a lot of extra text causes the coin icon to be very large. I have read elsewhere in the thread that adding a non-breaking space can help with that, but I'm struggling to get it to work. Putting one in between the $ and X causes the number to be outside the coin icon, and putting it after causes the coin icon to not show up at all. Putting it before the $ does not appear to do anything.

(https://i.imgur.com/oQyx98E.png)

An example of what I'm seeing.
Title: Re: Dominion Card Image Generator
Post by: Gubump on February 13, 2023, 11:29:35 pm
I've been working with the generator and have been having an issue where sometimes adding a $X amount into the text when there isn't a lot of extra text causes the coin icon to be very large. I have read elsewhere in the thread that adding a non-breaking space can help with that, but I'm struggling to get it to work. Putting one in between the $ and X causes the number to be outside the coin icon, and putting it after causes the coin icon to not show up at all. Putting it before the $ does not appear to do anything.

(https://i.imgur.com/oQyx98E.png)

An example of what I'm seeing.

The non-breaking space goes after the period.
Title: Re: Dominion Card Image Generator
Post by: BioRules on February 14, 2023, 12:02:01 am
I've been working with the generator and have been having an issue where sometimes adding a $X amount into the text when there isn't a lot of extra text causes the coin icon to be very large. I have read elsewhere in the thread that adding a non-breaking space can help with that, but I'm struggling to get it to work. Putting one in between the $ and X causes the number to be outside the coin icon, and putting it after causes the coin icon to not show up at all. Putting it before the $ does not appear to do anything.

(https://i.imgur.com/oQyx98E.png)

An example of what I'm seeing.

The non-breaking space goes after the period.

When I try that the coin icon disappears. The method I have been using for this is to use unicode U+00A0 in a word document, and copy the resulting space character into the generator. Is there a better method for this?

(https://i.imgur.com/kDXgeTt.png)
Title: Re: Dominion Card Image Generator
Post by: emtzalex on February 14, 2023, 12:34:11 pm
I've been working with the generator and have been having an issue where sometimes adding a $X amount into the text when there isn't a lot of extra text causes the coin icon to be very large. I have read elsewhere in the thread that adding a non-breaking space can help with that, but I'm struggling to get it to work. Putting one in between the $ and X causes the number to be outside the coin icon, and putting it after causes the coin icon to not show up at all. Putting it before the $ does not appear to do anything.

(https://i.imgur.com/oQyx98E.png)

An example of what I'm seeing.

When this happens, you can just manually add a paragraph break before "to" so the Coin isn't on its own line:

https://shardofhonor.github.io/dominion-card-generator/index.html?title=&description=Gain%20a%20card%20costing%20up%0Ato%20%243.&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&traveller=false&trait=false&picture=&expansion=&custom-icon=&color0=0&color1=0&size=0

It's may not be exactly how it should look (although I think it's fine), but it's way better than the giant Coin. Just remember to take the paragraph break out if you change the card up (and put it back in as necessary).
Title: Re: Dominion Card Image Generator
Post by: BioRules on February 14, 2023, 10:14:58 pm
When this happens, you can just manually add a paragraph break before "to" so the Coin isn't on its own line:

https://shardofhonor.github.io/dominion-card-generator/index.html?title=&description=Gain%20a%20card%20costing%20up%0Ato%20%243.&type=&credit=&creator=&price=&preview=&type2=&color2split=1&boldkeys=&picture-x=0&picture-y=0&picture-zoom=1&traveller=false&trait=false&picture=&expansion=&custom-icon=&color0=0&color1=0&size=0

It's may not be exactly how it should look (although I think it's fine), but it's way better than the giant Coin. Just remember to take the paragraph break out if you change the card up (and put it back in as necessary).

Ah, so its the coin being on it's own line that causes this. Perfect, thanks for the info.
Title: Re: Dominion Card Image Generator
Post by: Freddy10 on February 15, 2023, 11:41:28 am
Another alternative is forcing to reduce the font size by adding some empty lines above and below the description, so the $3 fits on the same line.
Title: Re: Dominion Card Image Generator
Post by: Alki on November 09, 2023, 06:50:48 pm
I guess I'm not the only one who gets the wrong font for keywords like '+1 Action' for a few weeks right now?
Title: Re: Dominion Card Image Generator
Post by: Freddy10 on November 12, 2023, 05:15:30 pm
If you have New Times Roman on your computer I think you can fix using this
[...]
However, the font of cost or the numbers displayed on the icon are thinner than when I used it before. It seems that the fonts on the cards are loaded correctly, but only the weight of those letters is different. Repeated reloading and tried various things, but it was not going well.
[...]
The previous font is more similar to the original, so I would like to create using the bolder font. Is there a solution?
I am also having this issue with incorrect coin font on my Windows machine, regardless of browser (Firefox, Chrome, Internet Explorer), where I was not previously.  I have the Minion Pro font that is used officially.
I believe my Android phone loads the coin font correctly (maybe it is simply cached), but it does not load "Times New Roman" for the body text.
The problem with the first one is that currently the generator is using Minion Pro instead of Minion Std Black. Regarding the Times New Roman problem, that font is also a proprietary font, so in android is using another Sans Serif font

To tackle the ongoing font issues, I've added a feature today that allows changing the fonts used in the card.

Open the new font settings menu on the bottom left, type in the font name and the generator should prefer this font over the default font selection chain. Your font settings are remembered on your device. The entered font name has to be installed on your device locally with the exact same name.
On a computer, you can check available fonts in a text editor like Word or in the system settings. Android has system settings for fonts, too.