Skip to content

Files

Latest commit

5b98e58 · Dec 13, 2022

History

History
29 lines (24 loc) · 739 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 739 Bytes

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]