expressjs / expressjs/multer

Modifying the file stream mid process

Open
#944 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
1.1k
Avg merge
8d 2h
Merged PRs (30d)
21

Description

Hello,

I am using multer to allow uploading of images from my webapp to our storage. I want to add a watermark to the images before they are uploaded.

I have been able to take the stream from the file object multer exposes and to apply the watermark to the file buffer inside of the stream, however I cannot connect this modified stream back to the file object from multer.

Is there any guidance on how this could be done?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.