Black/White image ???????

images php coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby swirlee » Wed Sep 08, 2004 7:07 am

Well, you could do it in GD by taking the color of each pixel, removing the saturation (i.e. setting it to 0), and replacing the pixel with the new color. But this, as you might imagine, would be horribly slow.

You're much better off using the Imagick extension, which I believe has a built-in function for this.

User avatar
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby ruturajv » Thu Sep 09, 2004 7:35 pm

yups image magik is our saviour!!! :grin:

Return to “PHP coding => Images”

Who is online

Users browsing this forum: No registered users and 2 guests