Black/White image ???????

images php coding issues or problems here.

Moderators: macek, egami, gesf

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

Post by 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
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Post by ruturajv » Thu Sep 09, 2004 7:35 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest