Filth's avatar

Image intervention cant write image data to path

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?

0 likes
2 replies
Filth's avatar

Thanks @bobbybouwmann, Following the intervention documentation though they used the path as i did, oh well rectified now thank you

Please or to participate in this conversation.