PHP Classes

ASCII art generator for PHP: Generate a text that looks like a given image

Recommend this page to a friend!

  Author Author  
Picture of Artur Graniszewski
Name: Artur Graniszewski is available for providing paid consulting. Contact Artur Graniszewski .
Classes: 14 packages by
Country: Poland Poland
Age: 40
All time rank: 2894 in Poland Poland
Week rank: 171 Up6 in Poland Poland Down
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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.

  Classes of Artur Graniszewski  >  ASCII art generator for PHP  >  Download Download .zip .tar.gz  >  Support forum Support forum (7)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: ASCII art generator for PHP
Base name: ascii-art-generator
Description: Generate a text that looks like a given image
Version: 1.0
PHP version: 5.2
License: GNU Lesser General Public License (LGPL)
All time users: 1430 users
All time rank: 2724
Week users: 0 users
Week rank: 180 Equal
  Groups   Screenshots Screenshots   Rate classes User ratings  
  Dependencies   Applications   Related pages   Files Files  

Group folder image HTML HTML generation and processing View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Graphics Colors, images, charts and picture formats View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes

  Files folder image Screenshots  
File Role Description
Accessible without login Image file ascii_art.jpg Screen Sample output of the ASCII generator

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Good (83%) Good (83%) - Good (88%) - - Not sure (58%) 1498
Month: Not yet rated by the users

  Packages needed by this class  
Class DownloadWhy it is needed Dependency
GD2 Imaging Download .zip .tar.gz GD2 Imaging is used for image quantization (OCR) - this library is provided with the ASCII generator package Required

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Related pages  
What is ASCII Art?
Description of ASCII Art on Wikipedia.
Example output
Example image converted to ASCII

  Files folder image Files  
File Role Description
Plain text file ascii_art.php Class Main class of ASCII generator
Accessible without login Image file ascii_art.png Data Characters required by the image quantizator
Plain text file gd2imaging.php Class GD2 Imaging library (v1.7.1)
Accessible without login Plain text file example.php Example Example script
Accessible without login Image file example.jpg Photo Image used by the example script

Install with Composer Install with Composer - Download Download all files: ascii-art-generator.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
For more information send a message to info at phpclasses dot org.