Documentation

CropFiles extends ArrayObject
in package

Cropped files collection wrapper.

  • @extends \ArrayObject<int, ExtractedImage>

Table of Contents

Methods

__construct()  : mixed
Builds a new CropFiles collection.
saveAllToDisk()  : void
Save all extracted crops to disk.

Methods

saveAllToDisk()

Save all extracted crops to disk.

public saveAllToDisk(string $path[, string $prefix = 'crop' ][, null|string $fileFormat = null ][, int $quality = 100 ]) : void
Parameters
$path : string

The directory path to save the extracted crops to.

$prefix : string = 'crop'

Prefix to add to the filename.

$fileFormat : null|string = null

File format to save the crops as.

$quality : int = 100

Quality of the saved image.

Tags
throws
MindeeException

If directory creation fails.


        
On this page

Search results