Dify QR Code Scanner Plugin

Read every QR code in a user-uploaded image directly inside your Dify plugin runtime. No vision model, no API key and no external service required.

Install from Dify Marketplace

Runs in Dify’s Python 3.12 plugin runtime (amd64 and arm64, 512 MiB). No API key required.

Open Dify Marketplace
  1. 1

    In Dify, open Plugins → Marketplace and search for QR Code & Barcode Scanner.

  2. 2

    Select Install. Signed Marketplace packages work on Cloud and self-hosted Dify with default settings.

  3. 3

    Add Scan QR codes and barcodes (scan_image) to a workflow or agent and bind an uploaded image file.

Reads the uploaded file from Dify’s file service, stores nothing and sends images to no other service.

Decode uploaded QR codes inside Dify workflows

Replace vision-model guesswork with exact local decoding, structured variables and clean failure routing.

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.

texts, count & complete variables

Returns a summary, unchanged JSON report and workflow variables (texts, count, complete) whilst keeping decoded text strictly as data.

QRS- failure branching

Empty images return count 0 cleanly; corrupt or oversized files fail with a QRS- error code so workflows can route to a failure branch.

Try a QR image in Dify

Prepare a known test image, run the scan and verify the returned value character by character.

qr-reference.png

Create a text QR code containing https://qrcode-ai.com/ and save it as qr-reference.png.

Run scan_image in Dify

Text
# 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: true
Expected result · QR code
https://qrcode-ai.com/

Dify 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.

Dify QR Code Scanner plugin questions

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.

Dify setup and QR Code Scanner references

Consult the official listing and README for installation details, limits and supported formats.