-
Notifications
You must be signed in to change notification settings - Fork 443
Open
Description
When I attach gradient to the qrcode, the margin trims eyes incorrectly. Images with issue and the code is attached.
simple-qrcode v.4.1.0
php 7.4.13
imagick module 3.4.4
With svg, everything works properly.
<?php
ini_set('display_errors', 1);
require_once '../vendor/autoload.php';
use SimpleSoftwareIO\QrCode\Generator;
$qrcode = new Generator;
$format = $_GET['format'] ?? 'svg';
$qrcode->format($format);
$qrcode->margin(2);
$qrcode->gradient(100,100,55,100,100,255,'horizontal');
if ($format == 'png') {
header('Content-Type: image/png');
}
echo $qrcode->size(600)->generate('https://test.net/very-long-url');
Metadata
Metadata
Assignees
Labels
No labels