PHP Classes

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

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 1,446 All time: 2,707 This week: 47Up
Version License PHP version Categories
ascii-art-generator 1.0GNU Lesser Genera...5.2HTML, PHP 5, Graphics, Text processing
Description 

Author

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.

Picture of Artur Graniszewski
  Performance   Level  
Name: Artur Graniszewski is available for providing paid consulting. Contact Artur Graniszewski .
Classes: 14 packages by
Country: Poland Poland
Age: 42
All time rank: 2874 in Poland Poland
Week rank: 215 Up2 in Poland Poland Up
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

Screenshots (1)  
  • ascii_art.jpg
  Files folder image Files (6)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
Downloadascii-art-generator-2011-11-15.zip 171KB
Downloadascii-art-generator-2011-11-15.tar.gz
Install with ComposerInstall with Composer
Needed packages  
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
 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,446
This week:0
All time:2,707
This week:47Up
User Ratings User Comments (6)
 All time
Utility:80%StarStarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:-
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1800
 
Very simple and good.
2 years ago (Teste)
70%StarStarStarStar
A very simple to use class for generating 1st class ascii art.
12 years ago (Raul Hofsem)
70%StarStarStarStar
nice realization of old idea
12 years ago (Andrei Bratchuk)
55%StarStarStar
Really amazing!
12 years ago (Denis Dantas Uyeda)
65%StarStarStarStar
Clean, good style, tested.
12 years ago (goodbee)
70%StarStarStarStar
Amazing!!!
12 years ago (Moises Jafet)
70%StarStarStarStar