1
0
Fork 0

Merge pull request #991 from pixelfed/frontend-ui-refactor

Update ImageOptimizePipeline
This commit is contained in:
daniel 2019-03-08 00:14:55 -07:00 committed by GitHub
commit 8cf0e4fc37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View File

@ -41,6 +41,9 @@ class ImageResize implements ShouldQueue
public function handle()
{
$media = $this->media;
if(!$media) {
return;
}
$path = storage_path('app/'.$media->media_path);
if (!is_file($path)) {
return;

View File

@ -42,6 +42,9 @@ class ImageThumbnail implements ShouldQueue
public function handle()
{
$media = $this->media;
if(!$media) {
return;
}
$path = storage_path('app/'.$media->media_path);
if (!is_file($path)) {
return;

View File

@ -48,6 +48,9 @@ class ImageUpdate implements ShouldQueue
public function handle()
{
$media = $this->media;
if(!$media) {
return;
}
$path = storage_path('app/'.$media->media_path);
$thumb = storage_path('app/'.$media->thumbnail_path);