A script to display ANSi and artscene related file formats on web pages
Log | Files | Refs | README | LICENSE

commit e56593c680259e69722eef036cabc34b5c24b77e
parent df28c63d44f9f1734b7737b0617c38de27c7b3b6
Author: Andy Herbert <>
Date:   Sun, 20 Oct 2013 15:28:44 +0100

Added thumbnail documentation.

Diffstat: | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/ b/ @@ -47,7 +47,7 @@ Ansilove.js has been tested on Safari, Firefox, and Chrome. Results may vary wid AnsiLove.render("example.bin", function (canvas, sauce) { document.body.appendChild(canvas); console.log(sauce); - }, {"font": "80x25", "bits": "8", "icecolors": 0, "columns": 80}); + }, {"font": "80x25", "bits": "8", "icecolors": 0, "columns": 80, "thumbnail": 0}); For extremely large files, which may silently fail on some browsers when producing a single canvas element, the `splitRender` function will produce an array of canvas elements, which can then be stacked vertically in the browser to simulate a single, contiguous display. The value of `27` in the following example is the maximum amount of text-rows in used in each element. @@ -131,6 +131,13 @@ If a function is passed after the options object of any method, then it will be Used for .BIN files only. Skip this option when converting other formats. The default is set at 160. +### Thumbnail options + +- 0 (default, turned OFF) +- 1 (turned ON) + +A thumbnail image is rendered instead of a full-size image. Each character of text is represented by a 1x2 pixel. + ### SAUCE record As well as a canvas element, a [SAUCE][3] record is returned as a Javascript object if one is found, and follows this format: