1001fx - NoCode functions icon

1001fx - NoCode functions

1001fx is a set of functions for any automation platform. Our functions are simple, very well tested, scalable and offer features that most automation platforms do not offer.

Actions74

images → Generates a QRCode with given text and color.

AI-generated

Overview

This node generates a QR code image based on user-provided text and customization options such as colors, size, and error correction level. It is useful in automations where you need to dynamically create QR codes for sharing URLs, authentication tokens, event tickets, or any other textual data. For example, you could use this node to generate QR codes for product labels, digital business cards, or secure login links.

Properties

Name Meaning
Text The text to place in your QR Code. This is the content that will be encoded into the QR code.
Border Color The border color of your QR code. Defaults to #ffffff (white) if not specified.
Border Color The color of the QR code itself (the "text" or foreground). Defaults to #000000 (black) if not specified.
Width The width of the output image in pixels. Defaults to 512. Maximum allowed value is 4096.
Error Correction Level Determines how much of the QR code can be obscured or damaged while still being readable. Options: M, L, Q, H. Defaults to M.
Binary Property Name of the binary property to which the generated QR code image will be written. Default is "data".

Note: There are two properties labeled "Border Color" in the definition. Based on their descriptions, one sets the background color and the other sets the foreground ("text") color.

Output

  • The node outputs a binary field containing the generated QR code image.
    • The binary property name is set by the "Binary Property" input (default: data).
    • The binary data includes the QR code image file, with appropriate filename and MIME type.
  • The json field is preserved from the input item but does not contain the QR code data itself.

Example output structure:

{
  "json": { /* original input json */ },
  "binary": {
    "data": {
      "data": "<base64-encoded-image>",
      "fileName": "qrcode.png",
      "mimeType": "image/png"
    }
  }
}

Dependencies

  • External Service: Requires access to the 1001fx API.
  • API Key: You must configure n8n credentials for 1001fxApi.
  • n8n Configuration: No additional environment variables required beyond standard credential setup.

Troubleshooting

  • Common Issues:

    • Missing or invalid API key: If the 1001fx API credentials are not configured or are incorrect, the node will fail with an authentication error.
    • Invalid input values: Providing an unsupported color format, excessively large width, or missing required fields (like Text) may result in errors.
    • Duplicate property names: Both background and foreground colors are labeled "Border Color"—ensure you set them correctly according to their description.
  • Error Messages:

    • "error": "Missing required parameter": Ensure all required fields, especially "Text" and "Binary Property", are filled.
    • "error": "Invalid color format": Use valid hex color codes (e.g., #ffffff).
    • "error": "Width exceeds maximum allowed value": Set width to 4096 or less.

    If Continue On Fail is enabled, errors will appear in the json.error field of the output.

Links and References

Discussion