Error: Edit image node: "Stream yields empty buffer"

Describe the problem/error/question

So I tested around with the situation a little bit, and I figured out that this error always comes up, when I want to add a little bit of more text to an image.
If I add small amounts, like 20 words or something, it’s not a problem. But if I add more light to hundred or such, the error always comes up.

What is the error message (if any)?

ERROR: Stream yields empty buffer
 Details
Stack
Error: Stream yields empty buffer
    at Socket.<anonymous> (/usr/local/lib/node_modules/n8n/node_modules/gm/lib/command.js:56:21)
    at Socket.emit (node:events:526:35)
    at Socket.emit (node:domain:489:12)
    at endReadableNT (node:internal/streams/readable:1359:12)
    at processTicksAndRejections (node:internal/process/task_queues:82:21)

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.8.2
  • Database (default: SQLite): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Mac OS

Hi @ManyQuestions :wave: This indeed looks like either a bug, or possibly a limitation of the Edit Image node - I’ve asked our team to see if there is a limit, but in my testing around 1,000 characters should be safe. We should probably provide a more detailed error message though :sweat_smile:

I’ll be back with any updates!

1 Like

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