Converting an image to grayscale in html5 canvas.

Understanding grayscale bitmap(digital) images:

Understanding grayscale bitmap(digital) images:

We can do many things with an image drawn on canvas. We can invert the image colors, change the image to grayscale, remove red or green color from the image, etc. Every pixel of a digital image(bitmap or raster graphics like jpeg, png, gif, etc.) can be manipulated using the canvas api.
The <canvas> tag is mainly used to draw and manipulate graphics. But sometimes you may need to draw text in canvas. This text is not normal in the sense that it cannot be selected using mouse. It is like an image drawn on the canvas.

In this tutorial we will do two basic things:
Using Drupal's multisite feature you can easily run multiple sites using the same core codebase of drupal. Although the codebase is same, it is a good idea to have different databases for different sites inside the multisite environment.