Page 1 of 1

Black and White Effect

Posted: 2012-07-10T08:22:42-07:00
by agriz
How to do this effect?
Give me some clues.

Image

Re: Black and White Effect

Posted: 2012-07-10T10:20:20-07:00
by fmw42
Make a mask of black/white stripes, then blend that with the background image so that you use mostly the striped image. The stripes can be made from a small image that is then tiled out to the size of your background image.

Re: Black and White Effect

Posted: 2012-07-10T10:49:06-07:00
by Bonzo
Below is an example from my website I did a few years ago and did know it could be used for this effect. You could experiment with the dissolve and the line thicnesses for the best effect.

Code: Select all

<?php  
// Create a image 2px wide and 4px high. Colour the top 2px wide and 1px high black
 exec("convert -size 2x4 xc:none -fill black -draw \"rectangle 0,0 2,1\" tile.png");
 
// Lay the black and white stripped image over the main image adjusting the opacity to create the desired effect
 exec("composite -dissolve 30% -tile tile.png sunflower.jpg blinds.jpg"); 

// Delete the tempory files 
unlink("tile.png"); 

/* 
An improved method without any tempory images. 
This uses the imagemagick miff:- which saves the image into the memory and then the Unix | "pipe".
 This uses the image created in the first part of the code in the second part of the code.
 */ 

$cmd = "-size 2x4 xc:none -fill black -draw \"rectangle 0,0 2,1\" miff:- | ". 
" composite -dissolve 30% -tile - sunflower.jpg "; 

exec("convert $cmd blinds.jpg"); 
 ?> 

Re: Black and White Effect

Posted: 2012-07-10T18:51:15-07:00
by anthony
create a very small tile image and tile it!

Re: Black and White Effect

Posted: 2012-07-11T07:54:06-07:00
by agriz
I did that.
is that good?

Image