Skip to content

ingenerator/image-processing

Repository files navigation

Image Processing

Install

composer require ingenerator/image-processing

Quick-start

Operations can be run in three different ways:

Interactively

use Ingenerator\ImageProcessing\Processor\ImageOperations;
$processor = new ImageOperations;
['width', 'height'] = $processor->getImageSize('test/resources/porto_1024.jpg');

As an independent PHP processes via symfony/process

use Ingenerator\ImageProcessing\Processor\CLIImageProcessor;
$processor = new CLIImageProcessor;
['width', 'height'] = $processor->getImageSize('test/resources/porto_1024.jpg');

Directly from the command line

> php src/Processor/process.php getImageSize test/resources/porto_1024.jpg 0
[1024,786]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages