Recommend
 
 Thumb up
 Hide
11 Posts

BoardGameGeek» Forums » Board Game Design » Board Game Art and Graphic Design

Subject: Combining Layers rss

Your Tags: Add tags
Popular Tags: [View All]
Doug Bass
United States
Winston-Salem
North Carolina
flag msg tools
designer
badge
Avatar
mbmbmbmbmb
Does anyone know of an inexpensive/free program that would let me take two different sets of layers and combine them in every combination possible? For example, if I have layers A and B and layers X, Y, and Z, it would create images for AX, AY, AZ, BX, BY, and BZ.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
damian isherwood
Canada
Courtice
Ontario
flag msg tools
designer
mbmbmbmbmb
Gimp I believe is free and can do that.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Jason
United States
Champaign
Illinois
flag msg tools
badge
Avatar
mbmbmb
What do you mean by layers? Are you referring to actual layers in a Photoshop/GIMP file? Or just separate images?
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Sheldon
Canada
Burnaby
British Columbia
flag msg tools
badge
Avatar
mb
Are you looking to use vector or raster art? For raster gimp is probably your best bet if you can't spring for a copy of Photoshop. For vector I think Inkscape is the leading freeware program though I have heard good things about DrawPlus as well.

I have used gimp but I'm so used to Photoshop I found it frustrating; that had a lot more to it being set up completely differently than PS and me having to relearn how to do things I know off by heart in PS than any actual shortcomings of gimp though.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Doug Bass
United States
Winston-Salem
North Carolina
flag msg tools
designer
badge
Avatar
mbmbmbmbmb
binaryeye wrote:
What do you mean by layers? Are you referring to actual layers in a Photoshop/GIMP file? Or just separate images?

Right now, they are actually separate gif's with transparency, but I think I could figure out how to turn them into layers in GIMP, if that's the route I should take.

My example was an oversimplifcaction. What I want to do is take two sets of images (first set has 4 images and the second set has 3) and combine one image from each set with one from the other, every permutation. This should give me 12 images. I will then have to repeat this entire process 11 more times with additional images, for a grand total of 144 images.

I want this to be as automated as possible.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Andrea Nand
Italy
Modena
flag msg tools
Best. Game. Ever.
badge
I wrote nanDECK and BGG1tool
Avatar
mbmbmbmbmb
dougbass68 wrote:
Does anyone know of an inexpensive/free program that would let me take two different sets of layers and combine them in every combination possible? For example, if I have layers A and B and layers X, Y, and Z, it would create images for AX, AY, AZ, BX, BY, and BZ.

For an example, let's suppose you have five .gif:

a.gif

b.gif

x.gif

y.gif

z.gif


With nanDECK it's only seven lines of code:

[lay1]=A|B
[lay2]=X|Y|Z
[mix]=PRODUCT([lay1],[lay2])
[img1]=JOIN([mix:1,1],.gif)
[img2]=JOIN([mix:2,1],.gif)
IMAGE="1-{(mix)}",[img1],0,0,100%,100%,0,T
IMAGE="1-{(mix)}",[img2],0,0,100%,100%,0,T


This is the result, running the above script:



Note: nanDECK doesn't support the transparent layer of GIFs, the T flag in the IMAGE lines treats as transparent the top-left pixel's color.

If you have some questions, feel free to ask. This is the download link (only Windows and Linux):
http://www.nandeck.com
2 
 Thumb up
1.00
 tip
 Hide
  • [+] Dice rolls
Doug Bass
United States
Winston-Salem
North Carolina
flag msg tools
designer
badge
Avatar
mbmbmbmbmb
This looks like exactly what I need. I'll give it a try later today. Thank you!! thumbsup
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Doug Bass
United States
Winston-Salem
North Carolina
flag msg tools
designer
badge
Avatar
mbmbmbmbmb
This worked perfectly. Thanks so much. Have another challenge for you, if you can help.

Can you help me write a script so that I create a third "layer" that replaces all black pixels in the image with a color of my choosing?

I tried this, but it replaced all non-black pixels (there are white, black, and other pixels):

CHROMAKEY = #8F8F8F
COLOR="1-{(mix)}",#00FF00

So did this:

CHROMAKEY = #808080
COLOR="1-{(mix)}",#00FF00

Any idea?
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Andrea Nand
Italy
Modena
flag msg tools
Best. Game. Ever.
badge
I wrote nanDECK and BGG1tool
Avatar
mbmbmbmbmb
dougbass68 wrote:
Can you help me write a script so that I create a third "layer" that replaces all white pixels in the image with a color of my choosing?

Do you mean a colored background?

You can add a RECTANGLE before the IMAGE directives:

[lay1]=A|B
[lay2]=X|Y|Z
[mix]=PRODUCT([lay1],[lay2])
[img1]=JOIN([mix:1,1],.gif)
[img2]=JOIN([mix:2,1],.gif)
RECTANGLE="1-{(mix)}",0,0,100%,100%,#00FF00
IMAGE="1-{(mix)}",[img1],0,0,100%,100%,0,T
IMAGE="1-{(mix)}",[img2],0,0,100%,100%,0,T
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Doug Bass
United States
Winston-Salem
North Carolina
flag msg tools
designer
badge
Avatar
mbmbmbmbmb
The background is white. There are two foreground colors, black in the main area of the card, and an orange icon in the upper left. I need to replace the black with green. I want to then repeat this with three other colors (red, yellow, blue) and generate unique files for each.



[lay1] contains the icons (orange)
[lay2] contains the foreground images (black)

1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Andrea Nand
Italy
Modena
flag msg tools
Best. Game. Ever.
badge
I wrote nanDECK and BGG1tool
Avatar
mbmbmbmbmb
An approach can be this:

Let's suppose you have all the cards, save them with a line like:

SAVE=1-10,"card{§}.bmp",0,0,100%,100%

And you obtain all the images, named:
card1.bmp
card2.bmp
...
card10.bmp

Then, run this script (saved into the same folder):

RECTANGLE=1-10,0,0,100%,100%,#00FF00
CHROMAKEY=#000000,10
IMAGE=1-10,"card{§}.bmp",0,0,100%,100%,0,T


Note the color green in the first line. This is the result for your card:

 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.