samedi 15 janvier 2022

ImageMagick module not available with this PHP installation on MacOS Big Sur

i have installed ImageMagick in my mac book by using home brew, when i search that imageMagick is available in my mac book, the below are search results screenshot. enter image description here

i am using image intervention package when i store my picture in my server, getting error code explain below

// Store a copy
    if($request->hasFile('profilepicture'))
    {
        $image_org = Image::make($request->file('profilepicture'))->encode('png');
        dd($image_org); // getting error
        try {
            // $image_org = Image::make($request->file('profilepicture'))->encode('png');
            // Storage::disk('ppics')->put($viewPortOrg, $image_org);
            Storage::disk('ppics')->put($viewPortOrg, $request->file('profilepicture'));
        } catch (\Exception $e) {
            \Log::error($e);
            return redirect()->back()->with('error','Invalid image uploaded, please try a different image');
        }
    }

the Error screen shot is below enter image description here

how i could resolve this error? Any help?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire