Questions tagged [grayscale]

For questions regarding Grayscale, a Bootstrap theme.

972 questions
25
votes
9 answers

How to convert a PDF to grayscale from command line avoiding to be rasterized?

I'm trying to convert to grayscale this PDF: https://dl.dropboxusercontent.com/u/10351891/page-27.pdf Ghostscript (v 9.10) with pdfwrite Device fails with a "Unable to convert color space to Gray, reverting strategy to LeaveColorUnchanged."…
Panda
  • 275
  • 1
  • 4
  • 7
25
votes
3 answers

CSS filter grayscale image for IE 10

Is there a way to make grayscale image filter work on IE 10 without JavaScript or SVG? I've been using the following code successfully in all browsers except IE 10. img{ filter:url("data:image/svg+xml;utf8,
Wissam Abyad
  • 253
  • 1
  • 3
  • 4
24
votes
2 answers

What grayscale conversion algorithm does OpenCV cvtColor() use?

When converting an image in OpenCV from color to grayscale, what conversion algorithm is used? I tried to look this up in the source code on GitHub, but I did not have any success. The lightness method averages the most prominent and least prominent…
Steve
  • 2,764
  • 4
  • 27
  • 32
23
votes
2 answers

Is it possible to turn an entire webpage to grayscale using CSS?

I would like to turn an entire website to grayscale. Of course, I can manually edit the CSS and adjust every single color, background-color & co. property, and I can adjust every single image in Photoshop. But is there an easier way, e.g. by using…
Golo Roden
  • 140,679
  • 96
  • 298
  • 425
18
votes
2 answers

Convert JPG image from grayscale to RGB using imagemagick

I am trying to convert gray scale images to RGB using the imagemagick command-line tools. It is working fine for PNG images, using: convert image.png -define png:color-type=2 result.png (taken from an answer to "How to convert gray scale png image…
NotYanka
  • 507
  • 1
  • 6
  • 12
17
votes
3 answers

how to make smooth grayscale on hover using CSS

I have logo in my website, it is grayscaled on hover i want it to be colored smoothly. it is working but not smoothly. i am using CSS transition. This is my code