Post Reply 

How to cross-hatch two images??

Mar 10, 2011, 07:05
Post: #1
How to cross-hatch two images??
Image knitting. We'll put it that way.
I'm still sort of a beginner, but this must be an intermediate thing to do, regardless.

For example, if you had a black layer, and a white layer, how would you create an image that looked like this?
[Image: tumblr_lhty4j2zzC1qhc58fo1_400.jpg]

Preferrably without doing it the painstaking way of copy/pasting??

Any ideas??


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
Mar 10, 2011, 07:53 (This post was last modified: Mar 10, 2011 07:58 by ofnuts.)
Post: #2
RE: How to cross-hatch two images??
ou do it using a "layer mask", which is a way to control the transparency of a layer. If your layer mask is a checker board, you are really stamping out square holes in the top layer (where the squares are black) through which the bottom layer shows.

First thing, to produce a regular checkerboard: create an image on the the side that has the size of 2x2 squares. Paint a 2x2 checker board, then in the menu bar, Selection/Select All, and Edit/Copy. Back to the image layer where you want the checker board, start the Bucket-fill tool, select "Pattern fill" and open the Patterns dialog: the first pattern of the list is the contents of the clipboard. Use that to fill your layer. Note: the pattern of the clipboard is limited to 512x512 pixels, so you can use this method only of your squares are at most 256 pixels.

Now, back to your original problem. Put the two images in two layers, and line them up as required if necessary. Make the top layer active. "Layer/Mask/Add layer mask" and initialize it to white. "Layer/Mask/Edit layer mask" (make sure it is checked, it normally should). Now you are editing the layer mask of the top layer: if you draw some black on the image, it makes a hole through which you see the bottom layer. So this is where you bucket-fill the layer mask with the checkerboard pattern as indicated above.


[attachment=230]

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Mar 11, 2011, 03:56
Post: #3
RE: How to cross-hatch two images??
Cool! That really helps, thanks! After a bit of playing around with it, I found this to work, also, even though it's a bit more of a round-about way:

Two layers (one for each image). Add Alpha Channel to top layer. Make bottom layer invisible. Show grid, snap to grid. Rectangle select boxes per row (saving total selection to a path). Clear selections to reveal alpha channel. Make bottom visible again and there you go!

I'll give your method a shot, and see how it works out. Sounds like it would give me a bit more flexibility.

Thanks again!
Find all posts by this user
Quote this message in a reply
Mar 11, 2011, 20:12
Post: #4
RE: How to cross-hatch two images??
The advantage of my method is that you don't delete anything from the top layer, so you can play more tricks later. You can also use it with about any shape for the holes (the pattern handles the repetition).

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Mar 12, 2011, 04:56
Post: #5
RE: How to cross-hatch two images??
Holy cow. How have I never learned how to layer mask??! What a noob, haha. This function is almost critical to any serious photo-manipulation job! You can do so much with it! Thank you for opening the door for me. I almost completely abandoned my original concept, when I realized how many applications there are for layer masking.

Thanks again Ofnuts!!
Find all posts by this user
Quote this message in a reply
Mar 12, 2011, 08:24
Post: #6
RE: How to cross-hatch two images??
Welcome to the other side of the Force Smile

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Mar 14, 2011, 06:58
Post: #7
RE: How to cross-hatch two images??
Just discovered a better way to generate the checker board: Filters/Render/Pattern/Checkerboard.

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Exporting Multiple Layers Into Images (PNG, JPG, etc) SavingMultipleImages 22 10,885 Oct 6, 2014 10:59
Last Post: rich2005
  Imagemagick is not compressing images like GIMP rublacava 1 344 Aug 23, 2014 08:23
Last Post: rich2005
  script to extract and overlay timestamp from jps images Mark Pigott 6 672 Jun 18, 2014 09:46
Last Post: rich2005
  Images won't export as indexed maximum411 8 598 May 29, 2014 04:10
Last Post: maximum411
  layer 2 images 1 transparent to another emsteel123 4 575 Apr 1, 2014 00:14
Last Post: emsteel123

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS