APITEMPLATE.IO, create a picture returning a black image

Describe the problem/error/question

Helllo
I have a workfkow with a jpeg file wants to use it in an apitemplate i created. The api call works for all properties burt doesn’t return my image (it only returns a black canvas)
See screenshot.
I am not sure where the issue lies as it seems that the image follows the specs of apitemplate.

Thanks for any pointer!!

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi, from the documentation, I don’t see an option to send images in binary format. The recommended approach is to use a URL string. Here’s an example if you’re using JSON:

{
    "overrides": [
        {
            "name": "background-color",
            "stroke": "grey",
            "backgroundColor": "#94C4D3"
        },
        {
            "name": "circle-image_1",
            "stroke": "#EFEFEF",
            "src": "https://images.unsplash.com/photo-1599140458985-d80aad8b06f0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxOTc1MDZ8MHwxfHNlYXJjaHwyOXx8c21pbGV8ZW58MHwwfHx8MTYxNzQzMzI3Mw&ixlib=rb-1.2.1&q=80&w=1080"
        },
        {
            "name": "text_quote",
            "text": "“The artist is nothing without the gift, but the gift is nothing without work”",
            "fontSize": 63,
            "textBackgroundColor": "rgba(255, 255, 255, 0.72)"
        }
    ]
}

Thanks apparently they accept base64 per their founder so will try this road but your solution should work. thanks a million

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.