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 exact barcode strings (leading zeros preserved) in texts, plus count, complete and the full JSON report without external lookups.
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 Code 128 barcode containing STOCK-4827 and save it as barcode-reference.png.
# Tool: Scan QR codes and barcodes (scan_image)
image: barcode-reference.png (user upload)
profile: fast
budget_ms: 0
# Output -> texts: ["STOCK-4827"], count: 1, complete: trueDify decodes the uploaded label locally inside the plugin runtime and sets texts to the exact Code 128 string without an LLM.
Example result for barcode-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.
Yes. It decodes 16 barcode symbologies directly inside Dify’s runtime, preserving every digit and leading zero in texts without querying external retail, dispatch or ISBN databases.
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.