You are here

protected function ImagickToolkit::getPath in Imagick 8

ensure that we have a local filepath since Imagick does not support remote stream wrappers

Return value

string

2 calls to ImagickToolkit::getPath()
ImagickToolkit::isValid in src/Plugin/ImageToolkit/ImagickToolkit.php
Checks if the image is valid.
ImagickToolkit::parseFile in src/Plugin/ImageToolkit/ImagickToolkit.php
Determines if a file contains a valid image.

File

src/Plugin/ImageToolkit/ImagickToolkit.php, line 237

Class

ImagickToolkit
Defines the Imagick toolkit for image manipulation within Drupal.

Namespace

Drupal\imagick\Plugin\ImageToolkit

Code

protected function getPath() {
  $source = $this
    ->getSource();
  return $this
    ->isRemoteUri($source) ? $this
    ->copyRemoteFileToLocalTemp($source) : $this->fileSystem
    ->realpath($source);
}