stoffel / console-image
Helper to print images using Symfony Console
Installs: 49
Dependents: 1
Suggesters: 0
Security: 0
Stars: 11
Watchers: 2
Forks: 2
Open Issues: 0
pkg:composer/stoffel/console-image
Requires
- php: ^7.4
- ext-gd: *
- symfony/console: ^5.2
- symfony/mime: ^5.2
Requires (Dev)
- phpunit/phpunit: ^9.4
README
Helper to print images using Symfony Console inspired by new features and viu.
Example
$ git clone git@github.com:chr-hertel/console-image.git
$ cd console-image
$ composer install
$ example/printer path/to/image.jpg
Installation
$ 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);