Skip to content

Commit

Permalink
Fix an issue when using with Servd Assets
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Aug 17, 2023
1 parent 2b625ae commit 5711d2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/services/Resize.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5711d2c

Please sign in to comment.