diff --git a/src/Conversions/FileManipulator.php b/src/Conversions/FileManipulator.php index 9a068085d..79e96f13f 100644 --- a/src/Conversions/FileManipulator.php +++ b/src/Conversions/FileManipulator.php @@ -59,13 +59,17 @@ public function performConversions( $conversions ->reject(function (Conversion $conversion) use ($onlyMissing, $media) { + if (! $onlyMissing) { + return false; + } + $relativePath = $media->getPath($conversion->getName()); if ($rootPath = config("filesystems.disks.{$media->disk}.root")) { $relativePath = str_replace($rootPath, '', $relativePath); } - return $onlyMissing && Storage::disk($media->disk)->exists($relativePath); + return Storage::disk($media->disk)->exists($relativePath); }) ->each(function (Conversion $conversion) use ($media, $copiedOriginalFile) { (new PerformConversionAction)->execute($conversion, $media, $copiedOriginalFile);