Major refactor of photo processing, video processing still to do

This commit is contained in:
2024-08-31 22:23:07 +10:00
parent 2d04c8ccbb
commit 9208ddf779
27 changed files with 3581 additions and 1017 deletions

View File

@@ -38,14 +38,9 @@ class PhotoController extends Controller
]);
}
public function info(Photo $o)
{
return view('photo.view',['o'=>$o]);
}
public function thumbnail(Photo $o)
{
return response($o->thumbnail(TRUE))
return response($o->thumbnail())
->header('Content-Type','image/jpeg');
}
@@ -54,9 +49,16 @@ class PhotoController extends Controller
$o->remove = NULL;
$o->save();
return redirect()->action('PhotoController@info',[$o->id]);
return redirect()
->action('PhotoController@info',[$o->id]);
}
/**
* Render the photo to the browser
*
* @param Photo $o
* @return \Illuminate\Contracts\Routing\ResponseFactory|\Illuminate\Foundation\Application|\Illuminate\Http\Response
*/
public function view(Photo $o)
{
return response($o->image())