# Getting error when trying to crop

**URL:** <https://community.n8n.io/t/getting-error-when-trying-to-crop/25382>\
**Category:** Questions\
**Tags:** deployment, edit-image\
**Created:** [April 19, 2023, 6:22pm UTC](https://community.n8n.io/t/getting-error-when-trying-to-crop/25382 "2023-04-19T18:22:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yossi\_Yhezkel](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yossi_yhezkel/32/14975_2.png) [@Yossi\_Yhezkel](https://community.n8n.io/u/Yossi_Yhezkel)\
**Post date:** [April 19, 2023, 6:22pm UTC](https://community.n8n.io/t/getting-error-when-trying-to-crop/25382/1 "2023-04-19T18:22:04Z")

</div>

## Describe the problem/error/question

getting the error “ERROR: Stream yields empty buffer”

I wish this node would…  
crop a image for me

## Problem in node ‘Edit Image‘

Stream yields empty buffer

## What is the error message (if any)?

```auto
Error: Stream yields empty buffer
    at Socket.<anonymous> (/www/wwwroot/auto.extreme-mile.com/n8n/node_modules/gm/lib/command.js:56:21)
    at Socket.emit (node:events:525:35)
    at Socket.emit (node:domain:552:15)
    at endReadableNT (node:internal/streams/readable:1358:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

```

## Please share your workflow

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version: 0.217.2**
- **Database ( SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker:**
- **Operating system:** ubuntu 20.04.05

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [April 21, 2023, 10:41am UTC](https://community.n8n.io/t/getting-error-when-trying-to-crop/25382/2 "2023-04-21T10:41:07Z")

</div>

Hey @Yossi_Yhezkel,

In the template you have not filled out how you are running n8n, I can see Docker has been left there but looking at your error message I suspect that isn’t the case.

My first thought is that you are missing a dependency which shouldn’t be the case on Docker but just incase you are not on Docker can you make sure you have `graphicsmagick` installed.

---

<div class="post-metadata">

**Author:** ![Yossi\_Yhezkel](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yossi_yhezkel/32/14975_2.png) [@Yossi\_Yhezkel](https://community.n8n.io/u/Yossi_Yhezkel)\
**Post date:** [April 24, 2023, 9:26am UTC](https://community.n8n.io/t/getting-error-when-trying-to-crop/25382/3 "2023-04-24T09:26:21Z")

</div>

worked!!

thank you very much

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/36532_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 1, 2023, 9:26am UTC](https://community.n8n.io/t/getting-error-when-trying-to-crop/25382/4 "2023-05-01T09:26:49Z")

</div>

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