Skip to content

dhlwing/gif2text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gif2text

Gif image to Ascii Text..

See also img2text

Example

gif2text test.gif > out.html demo

Installation

$ composer require bigweb/gif2text

Usage

Usage:
  gif2text <imgfile> 
  gif2text (-h | --help)

You also can use it anywhere what you want at your application like this:

use Bigweb\Gif2text\Gif2text;

$options = [
        'maxLen'   => 100,
    ];
$template = __DIR__ . '/template.html';
$img = new Gif2text($gifPath, $template, $options);
echo $img->render();

Thanks

  1. Use https://github.com/docopt/docopt.php to create beautiful command-line interface
  2. Use https://github.com/Intervention/image to process image
  3. Thanks @hit9, This project stolen from https://github.com/hit9/img2txt

License

BSD.

Releases

No releases published

Packages

No packages published