diff --git a/src/services/Resize.php b/src/services/Resize.php index 07040b5..05989d4 100644 --- a/src/services/Resize.php +++ b/src/services/Resize.php @@ -46,6 +46,11 @@ public function resize(Asset $asset, string $filename, string $path, int $width return false; } + // Check to see if this path exists. For some remote filesystems, the file may not be locally cached + if (!file_exists($path)) { + AssetsHelper::downloadFile($volume, $filename, $path); + } + try { /* @var Settings $settings */ $settings = ImageResizer::$plugin->getSettings();