LocalImageProcessor implements ProcessorInterface, LoggerAwareInterface uses LoggerAwareTrait

Processes Local Images files

Table of Contents

Interfaces

ProcessorInterface
Interface for file processors. All classes capable of processing a file have to implement this interface.
LoggerAwareInterface

Methods

canProcessTask()  : bool
Returns TRUE if this processor can process the given task.
processTask()  : void
Processes the given task.
processTaskWithLocalFile()  : void
Processes an image described in a task, but optionally uses a given local image
checkForExistingTargetFile()  : bool
Check if the target file that is to be processed already exists.
getHelperByTaskName()  : LocalCropScaleMaskHelper|LocalPreviewHelper

Methods

canProcessTask()

Returns TRUE if this processor can process the given task.

public canProcessTask(TaskInterface $task) : bool
Parameters
$task : TaskInterface
Return values
bool

processTaskWithLocalFile()

Processes an image described in a task, but optionally uses a given local image

public processTaskWithLocalFile(TaskInterface $task, string|null $localFile) : void
Parameters
$task : TaskInterface
$localFile : string|null
Tags
throws
InvalidArgumentException

checkForExistingTargetFile()

Check if the target file that is to be processed already exists.

protected checkForExistingTargetFile(TaskInterface $task) : bool

If it exists, use the metadata from that file and mark task as done.

Parameters
$task : TaskInterface
Return values
bool

        
On this page

Search results