Search for a tool
Grayscale Image

Tool to transform images into black and white (grayscale). A grayscale image is an image whose colors vary from white to black.

Results

Grayscale Image -

Tag(s) : Image Processing

Share
Share
dCode and more

dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!


Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!


Thanks to your feedback and relevant comments, dCode has developed the best 'Grayscale Image' tool, so feel free to write! Thank you!

Grayscale Image

Grayscale Converter (Black and White)

  [X]





Black and White Only Converter (no Gray)

Black and white is understood here as a grayscale gradient. For transforming an image into binary black or white (only black and white, no gray), indicate 2 shades of gray, and for the binary exploitation of the result, dCode has a tool for that:

⮞ Go to: Binary Image 0 1

Answers to Questions (FAQ)

How to transform an image into grascale?

Each color pixel in an image is typically defined by a triplet of red, green, and blue (RGB) values. But it is also possible to define it by a HSV triplet for hue (rather red, rather green, rather blue), saturation (rather bright color or rather grayish) and luminosity/value (rather light or rather dark). This brightness value is generally used to define the position / color of the pixel between black and white and thus obtain a grayscale image.

To calculate this luminosity, several algorithms / color referentials are possible, such as recommendations 709, 601 or 2100 used as a standard in photography or video (and from the CIE Commission Internationale de l'Éclairage).

dCode calculates the brightness value for each pixel in the image and returns a gray pixel of corresponding brightness.

If an error is returned, it may be an altered file, a bad image, or the file format does not match its extension.

What is a gray scale?

A gray scale is the set of shades of gray used in an image. The number of shades of gray is used to define the size of the scale.

By default, the gray scales are 256 levels of gray. gray-scale-256

What is the recommendation CIE 709?

Recommendation 709 is used as a standard for HDTV. The luminance is calculated as Gray = 0.2125 * Red + 0.7154 * Green + 0.0721 * Blue

Example: A color representing the color Orange consisting of Red = 255, Green = 127, Blue = 0. Then the value of gray is 255*0.2125+127*0.7154+0*0.0721=145

What is the recommendation CIE 601?

Recommendation 601 was used as a standard for analogic terrestrial television. Luminance is calculated as Gray = 0.299 * Red + 0.587 * Green + 0.114 * Blue

Example: A color representing the color Orange consisting of Red = 255, Green = 127, Blue = 0. Then the value of gray is 255*0.299+127*0.587+0*0.0114=151

Source code

dCode retains ownership of the online "Grayscale Image" source code. Except explicit open source licence (indicated CC / Creative Commons / free), the "Grayscale Image" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, translator), or the "Grayscale Image" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) and all data download, script, copy-paste, or API access for "Grayscale Image" are not public, same for offline use on PC, tablet, iPhone or Android ! Remainder : dCode is free to use.

Need Help ?

Please, check our dCode Discord community for help requests!
NB: for encrypted messages, test our automatic cipher identifier!

Questions / Comments

Thanks to your feedback and relevant comments, dCode has developed the best 'Grayscale Image' tool, so feel free to write! Thank you!


Source : https://www.dcode.fr/grayscale-image
© 2021 dCode — The ultimate 'toolkit' to solve every games / riddles / geocaching / CTF.
Feedback