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!


Feedback and suggestions are welcome so that dCode offers the best 'Grayscale Image' tool for free! 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.

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 "Grayscale Image" source code. Except explicit open source licence (indicated Creative Commons / free), the "Grayscale Image" algorithm, the applet or snippet (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, 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, or API access for "Grayscale Image" are not public, same for offline use on PC, mobile, tablet, iPhone or Android app!
Reminder : dCode is free to use.

Cite dCode

The copy-paste of the page "Grayscale Image" or any of its results, is allowed (even for commercial purposes) as long as you credit dCode!
Exporting results as a .csv or .txt file is free by clicking on the export icon
Cite as source (bibliography):
Grayscale Image on dCode.fr [online website], retrieved on 2024-11-21, https://www.dcode.fr/grayscale-image

Need Help ?

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

Questions / Comments

Feedback and suggestions are welcome so that dCode offers the best 'Grayscale Image' tool for free! Thank you!


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