Major refactor of photo processing, video processing still to do
This commit is contained in:
@@ -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())
|
||||
|
Reference in New Issue
Block a user