You are here

protected function ImagemagickToolkit::identify in ImageMagick 8

Calls the identify executable on the specified file.

Return value

bool TRUE if the file could be identified, FALSE otherwise.

1 call to ImagemagickToolkit::identify()
ImagemagickToolkit::parseFileViaIdentify in src/Plugin/ImageToolkit/ImagemagickToolkit.php
Parses the image file using the 'identify' executable.

File

src/Plugin/ImageToolkit/ImagemagickToolkit.php, line 1087

Class

ImagemagickToolkit
Provides ImageMagick integration toolkit for image manipulation.

Namespace

Drupal\imagemagick\Plugin\ImageToolkit

Code

protected function identify() {

  // Allow modules to alter the command line parameters.
  $command = 'identify';
  $this->moduleHandler
    ->alter('imagemagick_arguments', $this, $command);

  // Executes the command.
  $output = NULL;
  $ret = $this
    ->imagemagickExec($command, $output);
  $this
    ->resetArguments();
  return $ret === TRUE ? $output : FALSE;
}