QrCode::format('png')->size(108)->margin(10)->errorCorrection('H')->generate($qrCodeContent, public_path('/qrcodes/mqrcode/'.$qrCode.'.png'));

size() : 生成图片大小

margin(): 边距  和css中margin一个意思

errorCorrection(): 容错率 , 也就是有被覆盖的区域还能识别,分别是  L(QR_ECLEVEL_L,7%),M(QR_ECLEVEL_M,15%),Q(QR_ECLEVEL_Q,25%),H(QR_ECLEVEL_H,30%); 

相关文章:

  • 2022-02-06
  • 2021-10-24
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案