Black/White image ???????

images php coding issues or problems here.

Moderators: egami, macek, gesf

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

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.
Image

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

Thu Sep 09, 2004 7:35 pm

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest