Laravel 8在Windows 10上安装用于PHP和Apache的Imagick 10
我已经正确地完成了所有步骤以在我的PC上安装Imagick,但是正在遇到错误:“ 您需要安装Imagick扩展名以使用此后端”,同时尝试将QRCODE转换为PNG格式。我正在使用XAMPP进行Apache。
这是我的代码:
<div class="modal-body">
<div class="container" style="text-align: center;">
<!-- generate function from simple-qr code package -->
<!-- {{!! QrCode::size(250)->generate($row->link); !!}} -->
<img src="data:image/png;base64, {!! base64_encode(QrCode::format('png')->size(100)->generate($row->link)) !!} ">
</div>
<div class="codesource-link" style="text-align: center;">
<a href="https://https://codesource.io/">Download</a>
</div>
此图像证明了这一点:
不确定这里是否会缺少一些隐藏的步骤,如果您提供帮助,那就太好了。
I have done all steps properly to install imagick on my PC, yet am getting error: "You need to install the imagick extension to use this back end", while trying to convert QRcode into PNG format. Am using Xampp for Apache.
Here is my code:
<div class="modal-body">
<div class="container" style="text-align: center;">
<!-- generate function from simple-qr code package -->
<!-- {{!! QrCode::size(250)->generate($row->link); !!}} -->
<img src="data:image/png;base64, {!! base64_encode(QrCode::format('png')->size(100)->generate($row->link)) !!} ">
</div>
<div class="codesource-link" style="text-align: center;">
<a href="https://https://codesource.io/">Download</a>
</div>
This image proves it:
Am not sure there might be some hidden steps am missing here maybe, it would be great if you offer me your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经解决了。我在
路径>
中添加了apache \ bin
并重新启动了计算机。从那以后一切都很好。I have already solved it. I added
apache\bin
inPATH
and rebooted the computer. Everything worked fine since.