Helper to print images using Symfony Console
MIT License
Helper to print images using Symfony Console inspired by new features and viu.
$ git clone [email protected]:chr-hertel/console-image.git
$ cd console-image
$ composer install
$ example/printer path/to/image.jpg
$ composer require stoffel/console-image
Usage in PHP
use Stoffel\Console\Image\ImageHelper;
ImageHelper::create($output)
->print('/path/to/image.jpg');
// or with explicit maximal dimensions (still scaled in correct aspect ration)
ImageHelper::create($output)
->print('/path/to/image.jpg', 40, 20);