You are here

protected function ImageAPIOptimizeProcessorBinaryBase::execShellCommand in Image Optimize Binaries 8

Execute a shell command on the local system.

Parameters

$command: The command to execute.

$options: An array of options for the command. This will not be escaped before executing.

$arguments: An array of arguments for the command. These will be escaped.

Return value

bool Returns TRUE if the command completed successfully, FALSE otherwise.

6 calls to ImageAPIOptimizeProcessorBinaryBase::execShellCommand()
AdvDef::applyToImage in src/Plugin/ImageAPIOptimizeProcessor/AdvDef.php
AdvPng::applyToImage in src/Plugin/ImageAPIOptimizeProcessor/AdvPng.php
JpegOptim::applyToImage in src/Plugin/ImageAPIOptimizeProcessor/JpegOptim.php
OptiPng::applyToImage in src/Plugin/ImageAPIOptimizeProcessor/OptiPng.php
PngCrush::applyToImage in src/Plugin/ImageAPIOptimizeProcessor/PngCrush.php

... See full list

File

src/ImageAPIOptimizeProcessorBinaryBase.php, line 134

Class

ImageAPIOptimizeProcessorBinaryBase
Base class for image optimizations that run local binaries.

Namespace

Drupal\imageapi_optimize_binaries

Code

protected function execShellCommand($command, $options, $arguments) {
  return $this->shellOperations
    ->execShellCommand($command, $options, $arguments);
}