Comments (2)
You need to install imagick or use svg qrcodes.
from simple-qrcode.
Not so easy. Same error on Laravel 9/10, PHP 8.0, 8.1, 8.2 , MacOS 12 , Laravel Valet 4.5.0
simple-qrcode ^4.2
Imagick installed (PHP Monitor) #1:
#2 php.ini:
#3 Tinkerwell test:
ImageMagickBackEnd.php in bacon-qrcode, drops exception:
public function __construct(string $imageFormat = 'png', int $compressionQuality = 100)
{
if (! class_exists(Imagick::class)) {
throw new RuntimeException('You need to install the imagick extension to use this back end');
}
...
original call:
QrCode::format('png')->size(300)->margin(3)->generate($this->qrcode, $qrcode_image_path);
So any idea?
EDIT:
if I directly call the bacon qrcode in the project, it works, creates the png:
Route::get('qrtest', function(){
$renderer = new ImageRenderer(
new RendererStyle(400),
new ImagickImageBackEnd()
);
$writer = new Writer($renderer);
$writer->writeFile('Hello World!', base_path('qrcode2.png'));
});
from simple-qrcode.
Related Issues (20)
- Class "BaconQrCode\Encoder\Encoder" not found HOT 1
- can't scan while using dot style HOT 3
- Can't put logo on the qrcode when using merge or mergeString png image HOT 6
- Transparent background
- eyeColor Error Issues on Laravel BadMethodCallException
- Can't put logo on the qrcode when using merge or mergeString png image HOT 1
- Generate QrCOde with textbox HOT 1
- error:- data too big on including base64 image
- The body of "Symfony\Component\Mime\Part\TextPart" Error While Sending Mail HOT 2
- Iphone WiFi QR plans
- Laravel 10 - View - Strange Codes HOT 3
- Email QRCode shows "+" instead of spaces in subject and body
- Broken style when exporting rounded qr code as eps
- Execution time out when trying to add a logo over the qr code
- Expand Styles HOT 3
- Fails to save to a directory in Laravel 9
- VSCode intelephense(P1013) - Red underline when chaining methods despite working
- qrcode problem in smtp email HOT 1
- Documentation website dead HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-qrcode.