2017 © Pedro Peláez
 

library ascii-art

This class can generate a text that looks like a given image. It traverses the pixels of a given image and converts the color values of each region to a character text, so when you look at the sequence of converted characters it looks like the original image. The result text can optionally be outputted formatted as HTML and be displayed in color.

image

tigra-image-library/ascii-art

This class can generate a text that looks like a given image. It traverses the pixels of a given image and converts the color values of each region to a character text, so when you look at the sequence of converted characters it looks like the original image. The result text can optionally be outputted formatted as HTML and be displayed in color.

  • Tuesday, June 12, 2018
  • by artur-graniszewski
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

ASCII ART GENERATOR

Introduction

This class can generate a text that looks like a given image., (*1)

It traverses the pixels of a given image and converts the color values of each region to a character text, so when you look at the sequence of converted characters it looks like the original image., (*2)

The result text can optionally be outputted formatted as HTML and be displayed in color., (*3)

Sample output

Original image

Original, (*4)

ASCII art after image crop

Result, (*5)

Code example

getBackgroundColor()->getHexValue();
?>
<html>
<head>
<title>ASCII art demo</title>
</head>
<body bgcolor="#<?php echo $color; ?>">
setFontSize(6);
$x->show(range("a", "z"), 0.25, true, true);
?>
</body>
</html>

The Versions

12/06 2018

dev-develop

dev-develop https://github.com/artur-graniszewski/tigra-ascii-art

This class can generate a text that looks like a given image. It traverses the pixels of a given image and converts the color values of each region to a character text, so when you look at the sequence of converted characters it looks like the original image. The result text can optionally be outputted formatted as HTML and be displayed in color.

  Sources   Download

LGPL-3.0-only

The Requires

 

by Artur Graniszewski

php imaging gd2 ascii-art

12/03 2018

dev-master

9999999-dev https://github.com/artur-graniszewski/tigra-ascii-art

This class can generate a text that looks like a given image. It traverses the pixels of a given image and converts the color values of each region to a character text, so when you look at the sequence of converted characters it looks like the original image. The result text can optionally be outputted formatted as HTML and be displayed in color.

  Sources   Download

LGPL-3.0-only

The Requires

 

by Artur Graniszewski

php imaging gd2 ascii-art

12/03 2018

1.0.1

1.0.1.0 https://github.com/artur-graniszewski/tigra-ascii-art

This class can generate a text that looks like a given image. It traverses the pixels of a given image and converts the color values of each region to a character text, so when you look at the sequence of converted characters it looks like the original image. The result text can optionally be outputted formatted as HTML and be displayed in color.

  Sources   Download

LGPL-3.0-only

The Requires

 

by Artur Graniszewski

php imaging gd2 ascii-art

11/03 2018

1.0.0

1.0.0.0 https://github.com/artur-graniszewski/tigra-ascii-art

This class can generate a text that looks like a given image. It traverses the pixels of a given image and converts the color values of each region to a character text, so when you look at the sequence of converted characters it looks like the original image. The result text can optionally be outputted formatted as HTML and be displayed in color.

  Sources   Download

LGPL-3.0-only

The Requires

 

by Artur Graniszewski

php imaging gd2 ascii-art