QR Code
Buat file PNG atau SVG (error correction, ukuran, warna) dan baca kode QR dan Micro QR dari gambar lokal (zxing-wasm dimuat dari node_modules, tidak pernah dari CDN), batas piksel, hanya membuat file output baru
Tentang
Plugin Graphrt untuk kode QR. Workflow dan agent bisa membuat kode QR sebagai file PNG atau SVG baru, dan membaca kode QR di gambar lokal. Pembuatan memakai qrcode, pembacaan memakai zxing-wasm (pembaca ZXing C++ yang di-compile ke WebAssembly), keduanya JavaScript dan WebAssembly murni tanpa build native.
Yang bisa dilakukan
- generate: text (a URL or any text) as png or svg, with error_correction (L, M, Q, H), margin, module_size or image_size, dark_color and light_color, include_data: true also returns the SVG text or a PNG data: URL.
- decode: QR, Micro QR and rMQR codes in a png, jpeg, gif or bmp image: each code's text, content type, error correction level and corner positions, up to max_codes, try_harder also tries rotated and inverted images.
Aksi
Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.
- Generate a QR code
qr-code.generate - Decode QR codes
qr-code.decode
Pengaturan
Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.
-
QR_CODE_INPUT_DIRS(required for decode)Comma-separated directories (absolute or ~/...) that images may be read from, subdirectories included -
QR_CODE_OUTPUT_DIR(required for generate)Existing directory for generated codes, they can be read back by decode -
QR_CODE_MAX_INPUT_BYTES25 MiBLargest image to decode -
QR_CODE_MAX_OUTPUT_BYTES10 MiBLargest generated file -
QR_CODE_MAX_INPUT_PIXELS40000000Most pixels (width × height, read from the header) of an image to decode -
QR_CODE_MAX_OUTPUT_PIXELS16777216 (4096²)Most pixels of a generated PNG ((modules + 2 × margin) × module_size, squared)
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari QR Code.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan CLI
$ graphrt plugin install qr-code - id: qr_code type: qr-code.generate