We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 727
    • 502 Posts
    I would like to take an image and put horizontal lines running through it. I’m not sure how to describe the effect, but look at the background on this page:

    http://www.netstudio.com/

    Although this is a solid colour and probably has a very small tile that is repeated, I would like to get a similar effect for an image.

    Is there software that can do this automatically, or do you have to tediously had draw every horizontal line?

    Andy
      • 26435
      • 1,193 Posts
      Quote from: ajayre at May 19, 2006, 12:38 PM

      I would like to take an image and put horizontal lines running through it. I’m not sure how to describe the effect, but look at the background on this page:

      http://www.netstudio.com/

      Although this is a solid colour and probably has a very small tile that is repeated, I would like to get a similar effect for an image.

      Is there software that can do this automatically, or do you have to tediously had draw every horizontal line?

      Andy


      Hi Andy. Great question. I am honestly not sure if there is software out there to do this automatically. I imagine Zi would know the answer to that. I know that these are small graphics, tiled, and they are pretty simple to create manually. I attached the background image from the link you gave, and a graphic I created in <1 minute in photoshop. This is how I did it. create a new image, 10px wide by 12 px high. Select the rectangular marquee tool, set it fixed size width 10px height 2px. make a selection at the top of the image (photoshop auto aligns it) fill it with your background color, select the area right below your fill, again photoshop will auto align it so it looks perfect. fill this with your foreground color. keep alternating until you get to the end. theoretically, this image could be 1px wide by 4px high. Also, if you don’t have photoshop, I totally recommend GIMPshop [ http://www.gimpshop.net/ ], a version of GIMP that has been relabled and re-organized to look and work very, VERY similar to the expensive photoshop.

      later

      -sD-
        Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
        All of the above... in no specific order.


        I send pointless little messages
        • 727
        • 502 Posts
        Thanks for the reply! I’ve seen websites where this effect is applied to an image, for example a picture of a sunset or a person to kind of give the image a different look. Usually black lines are used across the image. Creating a small tile for backgrounds is easy enough, but what about for images?

        Andy
          • 26435
          • 1,193 Posts
          One soulution, probably not the best, but I just tried it and it worked, make two divs, one nested inside the other like this:
          <div id="bg_image">
             <div id="bg_tile"></div>
          </div>
          

          and the css:

          #bg_image {
             background:url(images/yourimage.jpg) no-repeat;
             height:200px; /* whatever the hight of your image is */
             width:784px; /* whatever the widthe of your image is */
          }
          #bg_tile {
             background:url(tile.gif); /* will repeat x & y across your image */
             height:100%;
             width:100%;
             opacity:.5; /* you can use this if you want to, but I don't know if it will validate (it's CSS3)*/
          }
          


          make sure your tile.gif has one line color, and the alternate line transparent!
          there you go, I hope that is the effect you are looking for.

          -sD-
          scotty Delicious
            Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
            All of the above... in no specific order.


            I send pointless little messages
            • 727
            • 502 Posts
            Hmmm...interesting! I’ll give that a try. Also has the big advantage that the image can easily be changed. Thanks!

            Andy
              • 26435
              • 1,193 Posts
              you can try this graphic for the tile if you want.

              -sD-
                Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                All of the above... in no specific order.


                I send pointless little messages
                • 2762
                • 1,198 Posts
                it’s interlace fx , one of the most used fx in ’90 websites design wink

                for background you can do like Scotty saids wink

                to apply it over an image in photoshop:

                1) create the small image pattern (using ScottyD tutorial)
                2) from PS menu select > select all
                3) from PS menu edit> define pattern

                ..than...you have two way:

                4a) open layer style properties and apply the pattern style

                or

                4b) create an empty layer and fill it with the pattern you’ve created

                5) adjust the fx using layer blending modes (Multiply,Overlay,Hue,Saturate,Dodge,..)
                  Free MODx Graphic resources and Templates www.tattoocms.it
                  -----------------------------------------------------

                  MODx IT  www.modx.it
                  -----------------------------------------------------

                  bubuna.com - Web & Multimedia Design
                  • 26435
                  • 1,193 Posts
                  quick edit:
                  *** Now corrected in original post ***

                  css for the tile should be
                  #bg_tile {
                     background:url(tile.gif); /* will repeat x & y across your image */
                     height:100%;
                     width:100%;
                     opacity:.5; /* you can use this if you want to, but I don't know if it will validate (it's CSS3)*/
                  }


                  -sD-
                    Husband, Father, Brother, Son, Programmer, Atheist, Nurse, Friend, Lover, Fighter.
                    All of the above... in no specific order.


                    I send pointless little messages
                    • 727
                    • 502 Posts
                    Works great, thanks! See my test here:

                    http://www.britishideas.com/interlace

                    It does flicker a bit with the thinner lines, but I’m sure that can be fixed with some tweaking.

                    Andy
                      • 33337
                      • 3,975 Posts
                      SD.. very nice CSS solution grin
                        Zaigham R - MODX Professional | Skype | Email | Twitter

                        Digging the interwebs for #MODX gems and bringing it to you. modx.link