Command (GetRealPath) is not available for driver (Gd)

前端 未结 1 1015
一整个雨季
一整个雨季 2021-01-20 01:15

I am trying to create a watermarked version of an uploaded image and store both of them to the storage folder using laravel 5.6 and Intervention.

    //creat         


        
相关标签:
1条回答
  • 2021-01-20 01:45

    I eventually found a fix, instead of using store or putfileas I used put:

    Storage::put('public/watermarked/' . $fileName . $extension, $watermarkedImage->encode());
    

    The edited image now saves properly, answer found here: Laracasts

    0 讨论(0)
提交回复
热议问题