I have configured dropzone to upload files which works great. I am now trying to use a combination of Jcrop and Image Intervention.
public function resize_image(Request $request,$id) {
$img = ImageModel::where('id', $id)->firstOrFail();
$imgHolder = Image::make(asset('images/full_size/'.$img->filename.'.jpg'));
$imgHolder->crop(ceil($request->input('w')), ceil($request->input('h')), ceil($request->input('x')), ceil($request->input('y')));
$imgHolder->save('public/images/full_size/'.$img->filename.'_cropped.jpg');
}
I recieve the error cant write image data to path, It cant be folder permissions as it is the same folder dropzone uploads to which is fine. Any suggestions?