/ 设置 10 秒超时 // 每日统计清 0 runtime_set('todaycomments', 0); runtime_set('todayarticles', 0); runtime_set('todayusers', 0); if ($forumlist) { $fidarr = array(); foreach ($forumlist as $fid => $forum) { $fidarr[] = $forum['fid']; } forum_update($fidarr, array('todayposts' => 0, 'todaythreads' => 0)); } // 清理临时附件 attach_gc(); // 当天24点 $today = strtotime(date('Ymd')) + 86400; runtime_set('cron_2_last_date', $today, TRUE); // 往前推8个小时,尽量保证在前一天 升级过来和采集的数据会很卡 // table_day_cron($time - 8 * 3600); cache_delete('cron_lock_2'); } } } ?>javascript - React js add logo in qrcode - Stack Overflow|Concepts Of Algorithm

javascript - React js add logo in qrcode - Stack Overflow

admin2025-04-20  5

I would like to be able to create a qrcode with a custom logo, as seen in the image.

I currently use the following library in react js: qrcode.react to create the qr code, but does not allow you to insert a logo.

I thought of writing a module to be able to do it, but I wanted some suggestions about it, as far as I can remember the internal codes, that is those where I should put the logo are correction codes.

I also found the following site that allows you to customize your qr code, according to you what technique they use, link: Site

I would like to be able to create a qrcode with a custom logo, as seen in the image.

I currently use the following library in react js: qrcode.react to create the qr code, but does not allow you to insert a logo.

I thought of writing a module to be able to do it, but I wanted some suggestions about it, as far as I can remember the internal codes, that is those where I should put the logo are correction codes.

I also found the following site that allows you to customize your qr code, according to you what technique they use, link: Site

Share Improve this question asked Sep 27, 2019 at 17:06 PaulPaul 4,51215 gold badges69 silver badges156 bronze badges 1
  • Hi Paul Have you able to acplished the above QR Code? I'm looking for similar QR Code – Herman Commented Apr 22, 2021 at 6:20
Add a ment  | 

1 Answer 1

Reset to default 3

Reading qrcode.react documentation, I saw imageSetings prop, this is alow you to insert any image you want as logo. Try it, this work for me:

<QRCode
  value="http://facebook.github.io/react/"
  fgColor="#7f0000"
  includeMargin
  imageSettings={{
    src:"https://picsum.photos/id/67/300/300",
    excavate:true
  }}
/>
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745125074a286373.html

最新回复(0)