File size limit: 4.5 MB
ASCII art is a graphic design technique that uses computers for presentation and consists of pictures pieced together from
different ASCII Characters. It was invented, in large part, because early printers often lacked graphics ability and
thus, characters were used in place of graphic marks.
Example:
First of all, the image is resized to a smaller size and is then converted to grayscale. The reason behind converting to grayscale is that we can get the darkness of the pixel (amount of blackness or whiteness) and then we can map each pixel to an ASCII character according to its density (for example 'Ñ' for the brightest pixel and " ` " or " " (whitespace) for the darkest pixel). Different ASCII character sets can be used.