1.1.2 • Published 2 years ago

image-convert-ascii v1.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Convert Image to Ascii

convert img element to ascii
screenshot

Installation

use npm

$ npm install image-convert-ascii

Syntax

new Convert(img element ID, pre element ID, width, height);

Example

pre,img element with ID in HTML

<body style="font-size: 10px">
  <pre id="pre"></pre>
  <!-- Insert the image want to convert -->
  <img id="img" src="./asciiTest.png" crossorigin="anonymous" />
</body>

use npm

import Convert from 'image-convert-ascii';
//input img, pre element ID and size
new Convert('img', 'pre', 100, 100);

in browser

<script defer type="module">
  import Convert from 'https://cdn.jsdelivr.net/gh/hoonsbory/image-convert-ascii/Convert.js';
  new Convert('img', 'pre', 100, 100);
</script>
1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago