0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Generate → Generate QR Code

AI-generated

Overview

The node provides a utility to generate QR codes from input text or data. It is useful in scenarios where you want to create QR codes dynamically within an automation workflow, for example:

  • Encoding URLs, contact information, or plain text into QR codes for sharing.
  • Generating QR codes with custom styling and embedded images for branding purposes.
  • Creating QR codes of specific sizes and error correction levels for printing or digital use.

This node supports advanced customization such as dot styles, corner shapes, embedded center images, margins, and output format options (image buffer or URL).

Properties

Name Meaning
Data to Encode The text or data string that will be encoded into the QR code (e.g., a URL or any text).
Width Width of the generated QR code image in pixels.
Height Height of the generated QR code image in pixels.
Center Image URL URL of an image to embed in the center of the QR code (e.g., a logo).
Margin Size in pixels of the space between the QR code and the image border.
QR Options Collection of QR code generation options:
• Type Number (1-40) controlling QR code size.
• Mode: Alphanumeric, Byte, Numeric.
• Error Correction Level: H (30%), Q (25%), M (15%), L (7%).
Image Options Options related to the embedded center image:
• Hide Background Dots (boolean): whether dots behind the image are hidden.
• Image Margin: empty space around the embedded image in pixels.
Dots Options Styling options for the QR code dots:
• Dots Type: classy, classy-rounded, dots, extra-rounded, rounded, square.
• Dots Color: hex color code for the dots.
Corner Square Options Styling options for the corner squares:
• Corner Square Type: dot, extra-rounded, square.
• Corner Square Color: hex color code.
Corner Dot Options Styling options for the corner dots:
• Corner Dot Type: dot, square.
• Corner Dot Color: hex color code.
Get As URL Boolean flag indicating if the output should be returned as a URL instead of an image buffer.
File Name Optional file name for the resulting QR code image.

Output

The node outputs the generated QR code image. Depending on the "Get As URL" property:

  • If false, the output contains binary image data representing the QR code image.
  • If true, the output contains a URL pointing to the generated QR code image.

The output JSON includes the image data or URL, which can be used downstream in workflows for saving, displaying, or further processing.

Dependencies

  • Requires an API key credential for authentication with the external 0CodeKit service.
  • The node sends a POST request to the /generate/qrcode/encode endpoint of the 0CodeKit API to generate the QR code.
  • No additional local dependencies; relies on the external service for QR code generation.

Troubleshooting

  • Invalid or missing data to encode: Ensure the "Data to Encode" field is not empty and contains valid text.
  • API authentication errors: Verify that the API key credential is correctly configured and has necessary permissions.
  • Unsupported QR code type number: The "Type Number" must be between 1 and 40 or 0 for automatic sizing.
  • Image URL issues: If embedding a center image, ensure the URL is accessible and points to a valid image.
  • Output format confusion: If expecting a URL but receiving binary data, check the "Get As URL" property setting.
  • Color or style rendering problems: Use valid hex color codes and supported style options to avoid unexpected visuals.

Links and References

Discussion