开发者

Is there a JQuery plugin that will turn a color photo to a b&w photo on upload?

I'm using jcrop when users upl开发者_开发技巧oad a photo for their avatar to resize it properly.. however I'd also like to turn the photos black & white.


You can turn it black and white on the client side, with canvas, but it would be pointless to push this pixel data to the server to be saved. I would use this only as a preview to the user.

If you wanted them to be permanently black and white, do it server side.


you can do it server-side. I believe jCrop comes with php as it's back-end, so maybe this link helps.

How do you convert an image to black and white in PHP


Take a look at Look http://www.pixastic.com/


An alternative idea: You can do this in flash (although requires flash)


Webdesigner wall has a good tutorial on using jQuery and Canvas to apply a grayscale effect client-side.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜