compress-images icon indicating copy to clipboard operation
compress-images copied to clipboard

Ability to input the file instead of its path

Open reyhane-javidi opened this issue 2 years ago • 1 comments

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.

reyhane-javidi avatar Sep 15 '22 15:09 reyhane-javidi

reyhane-javidi

Hello,

You can use imagemin

Yuriy-Svetlov avatar Sep 16 '22 19:09 Yuriy-Svetlov