Image To Text

Image To Text converts a png or jpeg image into a text file image using text of your choice. You can get similar results from various other utilities, such as the Gimp Text Colorer, but this script works differently, guaranteeing that all your text might appear, and thus only delivering pure black and white images. This is the same script i used to create my E-mail Photographs.

If you like messing with text and images, you may also enjoy my Image to HTML Source script. Click here for the most recent version of the script.

Here is the man page for the script.

Some Examples:

Che Guevara in text.
Original image Original text
command used:
image2text -i sample1.png -t sample1.text -h.65 -W89 -p

Nadja Auermann in text.
Original image
command used:
image2text -i sample2.jpg -H90 -p -h.8

Bob Marley: big, medium, small
Original image original text

 

Try the web version:

Url of PNG or JPEG Image:

Text to Use:

confusing options:

width multiplier:
height multiplier1:
1Since pixels have a height:width ratio of 1:1 and text has a height:width ratio of about 1:1.5, you will want to set height multiplier to about .7 in order to not skew the resulting image.

Set width to2: pixels
Set height to2: pixels
2values must be between 1 and 200

Preserve height/width ratio3
Reverse colour
3If you set width but not height (or vice versa), checking this will keep perspective (before multipliers are applied).

Use Threshold of4:
4If image is not pure black and white, use threshold value to modify what value to consider black or white (all values above this number are considered white, below are black). Default is 128. Valid values are 1-254.