Support Questions
Find answers, ask questions, and share your expertise

Crop Image in NiFi

Crop Image in NiFi

New Contributor

I am trying to use ImageMagick to crop photos from NiFi using the ExecuteStreamCommand processor. Below is the code I am using to crop the image from my command line, and it is working fine.

83423-commandlinescreenshot.png

When I am trying to run this in ExecuteStreamCommand I am getting errors though saying "cannot find file specified".

Does anyone know what I am doing wrong or know a better way to crop an image in NiFi?

83424-capture.png

1 REPLY 1
Highlighted

Re: Crop Image in NiFi

Provide the path to the file in the Working Directory attribute. You can also try the full path to the file with the filename in the command arguments.