Daniel Supernault 6 лет назад
Родитель
Сommit
3d53661b18
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/Util/Media/Image.php

+ 1 - 1
app/Util/Media/Image.php

@@ -131,7 +131,7 @@ class Image
 
             $quality = config('pixelfed.image_quality');
             $img->save($newPath, $quality);
-
+            $img->destroy();
             if (!$thumbnail) {
                 $media->orientation = $orientation;
             }