diff --git a/modules/system/classes/ImageResizer.php b/modules/system/classes/ImageResizer.php index 4112fe1bc4..20aa2c3a33 100644 --- a/modules/system/classes/ImageResizer.php +++ b/modules/system/classes/ImageResizer.php @@ -352,7 +352,7 @@ public function resize(): void Event::fire('system.resizer.afterResize', [$this, $tempPath]); // Store the resized image - $disk->put($path, file_get_contents($tempPath)); + $disk->put($path, file_get_contents($tempPath), ['directory_visibility' => 'public', 'visibility' => 'public']); // Clean up unlink($tempPath); @@ -438,7 +438,7 @@ public function crop(): void Event::fire('system.resizer.afterCrop', [$this, $tempPath]); // Store the resized image - $disk->put($path, file_get_contents($tempPath)); + $disk->put($path, file_get_contents($tempPath), ['directory_visibility' => 'public', 'visibility' => 'public']); // Clean up unlink($tempPath);