简体   繁体   中英

laravel 8 install Imagick for PHP and Apache on Windows 10

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM