将彩色图片显示为单色 [英] Display color picture as monochrome

查看:132
本文介绍了将彩色图片显示为单色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有使用Html / Css将彩色图片显示为灰度的方法吗?也就是说。无服务器端处理。

Is there a way to display a color picture as greyscale using Html/Css? Ie. no server side processing.

编辑:单色 - >灰度

Edited: monochrome -> greyscale

推荐答案

最好的方法是首先上传灰度图片。如果这是用于某种悬停任务,请查看创建 CSS sprite 。我理解这不完全回答问题,但我不能为我的生活理解为什么你需要客户端图像处理。

The best way would be to upload a greyscale picture in the first place. If this is for some sort of hover task, take a look at creating a CSS sprite. I understand this doesn't answer the question fully, but I can't for the life of me understand why you need client side image manipulation.

这篇关于将彩色图片显示为单色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆