Laravel 8在Windows 10上安装用于PHP和Apache的Imagick 10

发布于 2025-02-09 05:50:47 字数 957 浏览 2 评论 0原文

我已经正确地完成了所有步骤以在我的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:

enter image description here

Am not sure there might be some hidden steps am missing here maybe, it would be great if you offer me your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

遗弃M 2025-02-16 05:50:47

我已经解决了。我在路径>中添加了apache \ bin并重新启动了计算机。从那以后一切都很好。

I have already solved it. I added apache\bin in PATH and rebooted the computer. Everything worked fine since.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文