Workflows & Agent uploads
Connect Scan QR codes and barcodes (scan_image) to PNG, JPEG, WebP or GIF uploads up to 16 MiB, 4,096 px per side and 16 MP.
Swap out vision-model approximations for exact local decoding, clean workflow variables and predictable error routing.
Connect Scan QR codes and barcodes (scan_image) to PNG, JPEG, WebP or GIF uploads up to 16 MiB, 4,096 px per side and 16 MP.
Outputs a brief summary, the raw engine JSON report and workflow variables (texts, count, complete) while keeping decoded text purely as data.
Blank images return count 0 cleanly; corrupt or oversized uploads raise a QRS- error code so workflows can trigger a fallback branch.
Create a known reference image, run the tool call and check the decoded string character by character.
Create a text QR code encoding https://qrcode-ai.com/ and save the file as qr-reference.png.
# Tool: Scan QR codes and barcodes (scan_image)
image: qr-reference.png (user upload)
profile: fast # or full for artistic QR codes
budget_ms: 0
# Output -> texts: ["https://qrcode-ai.com/"], count: 1, complete: trueDify reads the uploaded file locally inside its plugin runtime and writes the exact QR URL into texts without invoking an LLM.
Sample output for qr-reference.png.
Marketplace setup, self-hosted .difypkg packaging, output variables, image limits and privacy.
Inside Dify, go to Plugins → Marketplace, look up QR Code & Barcode Scanner and press Install. You can also view the official entry on Dify Marketplace.
No. The open-source Rust and Python engine executes locally inside your Dify plugin runtime on Python 3.12, so reading images needs no vision model, no QR Code AI account and no API key.
Yes. Package the source folder using dify plugin package ./qrcode-barcode-scanner-dify to generate a .difypkg archive, add FORCE_VERIFYING_SIGNATURE=false inside docker/.env for unsigned local packages, restart Dify and upload it via Install plugin → Local package file.
It outputs a one-line text summary, the full unmodified engine JSON report and three workflow variables: texts (decoded strings), count (total codes found) and complete (false whenever budget_ms stops the scan early).
A single PNG, JPEG, WebP or GIF file per call, capped at 16 MiB, 4,096 pixels per edge and 16 million total pixels. Oversized or corrupt uploads fail with a QRS- error code so workflows can direct them down a failure branch.
No. It fetches the image from Dify's file service, decodes locally inside the plugin runtime, keeps no copies and never visits decoded URLs. Always handle decoded text strictly as data rather than instructions.
Yes. Both the plugin source and current PyPI engine wheel are MIT-licensed and free to run, completely separate from QR Code AI generation credits or paid plans.
Refer to the official marketplace page and README for installation steps, image limits and supported formats.