bigweb / gif2text
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Language:HTML
Requires
- intervention/image: ~2.3
Requires (Dev)
- docopt/docopt: dev-master
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2024-10-30 17:33:06 UTC
README
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
- Use https://github.com/docopt/docopt.php to create beautiful command-line interface
- Use https://github.com/Intervention/image to process image
- Thanks @hit9, This project stolen from https://github.com/hit9/img2txt
License
BSD.