diff --git a/app/Jobs/ProcessImage.php b/app/Jobs/ProcessImage.php index d977bc3a..f0fdb263 100644 --- a/app/Jobs/ProcessImage.php +++ b/app/Jobs/ProcessImage.php @@ -40,6 +40,7 @@ class ProcessImage implements ShouldQueue } catch (NotReadableException $exception) { // not an image; delete file and end job unlink(storage_path('app') . '/' . $this->filename); + return; } //create smaller versions if necessary