Workflows & Agent uploads
Expose Scan QR codes and barcodes (scan_image) on PNG, JPEG, WebP or GIF uploads up to 16 MiB, 4,096 px per side and 16 MP.
Replace vision-model guesswork with exact local decoding, structured variables and clean failure routing.
Expose Scan QR codes and barcodes (scan_image) on PNG, JPEG, WebP or GIF uploads up to 16 MiB, 4,096 px per side and 16 MP.
Returns a summary, unchanged JSON report and workflow variables (texts, count, complete) whilst keeping decoded text strictly as data.
Empty images return count 0 cleanly; corrupt or oversized files fail with a QRS- error code so workflows can route to a failure branch.
Prepare a known test image, run the scan and verify the returned value character by character.
Create a text QR code containing https://qrcode-ai.com/ and save it 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 decodes the uploaded image locally inside the plugin runtime and sets texts to the exact QR URL without calling an LLM.
Example result for qr-reference.png.
Marketplace install, self-hosted .difypkg packaging, tool variables, limits and privacy.
In Dify, open Plugins → Marketplace, search for QR Code & Barcode Scanner and select Install. You can also view the official listing on Dify Marketplace.
No. The open-source Rust/Python engine runs locally inside your Dify plugin runtime on Python 3.12, so scanning requires no vision model, no QR Code AI account and no API key.
Yes. Package the repository with dify plugin package ./qrcode-barcode-scanner-dify to create a .difypkg file, add FORCE_VERIFYING_SIGNATURE=false to docker/.env for unsigned local packages, restart Dify and upload it under Install plugin → Local package file.
It returns a one-line text summary, the full unchanged engine JSON report and three workflow variables: texts (decoded strings), count (number of codes found) and complete (false if budget_ms cut the scan short).
One PNG, JPEG, WebP or GIF file per call, up to 16 MiB, 4,096 pixels per side and 16 million total pixels. Larger or corrupt files fail with a QRS- error code so workflows can route them to a failure branch.
No. It reads the file from Dify’s file service, decodes locally inside the plugin runtime, stores nothing and never opens decoded URLs. Treat decoded text strictly as data, not instructions.
Yes. Both the plugin source and the current PyPI engine wheel are free and open source under the MIT licence, independent of QR Code AI generation credits or paid plans.
Consult the official listing and README for installation details, limits and supported formats.