Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to input the file instead of its path #69

Open
reyhane-javidi opened this issue Sep 15, 2022 · 1 comment
Open

Ability to input the file instead of its path #69

reyhane-javidi opened this issue Sep 15, 2022 · 1 comment

Comments

@reyhane-javidi
Copy link

Hi,
I was wondering if you could add the ability to input a file instead of the source path for compressing the images.
I'm working on a nestjs project using multer to upload and save images. I have to save the image files then compress them and save the compressed files in directory and then delete the uncompressed files, but if compressing images with their files was possible I could compress the images before storing them in directory.

@Yuriy-Svetlov
Copy link
Owner

reyhane-javidi

Hello,

You can use imagemin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants