Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

Black/White image ???????

images php coding issues or problems here.

Moderators: macek, egami, gesf

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
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

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

yups image magik is our saviour!!! :grin:
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India


Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.