I get buffer data to my program from external and I want to process buffer data and send it as a buffer also. So I don't want to convert buffer into an image. How can I do this?
I try this way but it not work.
const process = await sharp(incoming_buffer_data).grayscale();
fs.writeFileSync('test.jpg', process);
// I am using this for testing. Allways I am getting worng image format as an error
process
variable! – Buddhism