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

Would be cool if a cli tool is availble #4

Open
ycmjason opened this issue Dec 21, 2017 · 7 comments
Open

Would be cool if a cli tool is availble #4

ycmjason opened this issue Dec 21, 2017 · 7 comments

Comments

@ycmjason
Copy link

I really just wanna quickly compress my files for once. Please make a bin so that I could just npx it.

@Yuriy-Svetlov
Copy link
Owner

Hello, Ycmjason.
Thank you for your question.

Do would can you write more details?

@ycmjason
Copy link
Author

So... I am just simply trying to compress all my images once, I don't wish to write a script to do that.. It would be cool if there is command line interface so that I could simply compress *.png then all the images compressed. Just suggesting, there are other tools for this particular usage. Just thought it would be great to have that.

@Yuriy-Svetlov
Copy link
Owner

Yuriy-Svetlov commented Dec 22, 2017

If use as example - 'src/img/source/**/*.{jpg,JPG,jpeg,JPEG,gif,png,svg}' and compress_force: false - all images will be compressed once. But i will thinks about command line interface. Thank you for offer!

@OutThisLife
Copy link

#9

@ShaunLWM
Copy link

Made this cos I needed it urgently.

https://github.com/ShaunLWM/node-compress-image-cli

@shinebayar-g
Copy link

shinebayar-g commented Dec 9, 2019

It's much needed feature. Since it can handle batch operations, cli usage can be very helpful.

@Xmetalfanx
Copy link

just found this project as an alternative to imagemin which is now unmaintained and one of my issues with that is it not saving images in subdirs in the same path structure.

anyway, trying to figure out how to use this while looking at the -cli option linked above. I think this maybe exactly what i was looking for, transfering away from an EOL project (imagemin)

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

No branches or pull requests

6 participants