命令(插入)不适用于驱动程序 (Gd)

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

你好,我正在使用图像干预。项目在本地服务器上运行良好。 我的远程服务器 Digitalocean droplet 和 Lamp Ubuntu 14.04 安装。我确定所有必要的模块都已安装并处于活动状态。

Image::make('uploads/products/'.$filename)->fit(440, 585)->insert('uploads/watermark.png','center',0,0)->保存('uploads/products/'.$文件名, 100);

if ->insert 函数绕过我在 droplet 上工作的代码。但是当添加到 ->insert 代码时抛出错误消息。

Laravel 5.2 抛出此错误消息:命令(插入)不适用于驱动程序 (Gd) 我正在尽我所能。如何解决这个问题。我失去了一天:(

我解决了我的问题。

我在服务器上使用土耳其语区域设置之前。当我在任何 Ubuntu 版本上设置为土耳其语区域设置时。所有小 "i" 字符更改大“İ”字符。您知道 Laravel 框架上的 class 名称。每个 class 名字都以大字开头。我们不需要使用开发代码的“İ”字符。 这个问题偷走了我 3 天的时间。我正在重建到服务器 12 次。我现在很开心!

setlocale(LC_ALL, 'en_GB.UTF-8');
$file = $request->file('file');
list($filename, $extension) = explode(".", $file->getClientOriginalName());
$filename = strtolower(str_slug(uniqid().'-'.$filename).'.'.$extension);
$fileSave = $file->move('uploads/post',$filename);
Image::make('uploads/post/'.$filename)->fit(440, 585)->insert('uploads/watermark.png','center',0,0)->save('uploads/post/'.$filename, 60);
setlocale(LC_ALL, 'tr_TR.UTF-8');