bigweb / gif2text
此包最新版本(dev-master)没有可用的许可证信息。
dev-master
2015-11-11 09:54 UTC
Requires
- intervention/image: ~2.3
Requires (Dev)
- docopt/docopt: dev-master
- phpunit/phpunit: 4.*
This package is not auto-updated.
Last update: 2024-09-18 16:56:51 UTC
README
将Gif图像转换为Ascii文本...
另见img2text
示例
gif2text test.gif > out.html
演示
安装
$ composer require bigweb/gif2text
使用
Usage:
gif2text <imgfile>
gif2text (-h | --help)
您也可以在应用程序的任何地方使用它,如下所示
use Bigweb\Gif2text\Gif2text; $options = [ 'maxLen' => 100, ]; $template = __DIR__ . '/template.html'; $img = new Gif2text($gifPath, $template, $options); echo $img->render();
谢谢
- 使用https://github.com/docopt/docopt.php创建美观的命令行界面
- 使用https://github.com/Intervention/image处理图像
- 感谢@hit9,此项目是从https://github.com/hit9/img2txt窃取的
许可证
BSD.