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

Compress without overwriting #139

Open
colthreepv opened this issue Aug 8, 2016 · 3 comments
Open

Compress without overwriting #139

colthreepv opened this issue Aug 8, 2016 · 3 comments

Comments

@colthreepv
Copy link

I am using the CLI version of image_optim (and actually I am also using the dockerized version #114)

It's possible to compress files without overwriting them? If so I cannot find the config option

@colthreepv colthreepv changed the title Compress image without overwriting Compress without overwriting Aug 8, 2016
@toy
Copy link
Owner

toy commented Aug 10, 2016

Do you mean putting them to a different folder or to the same folder with some suffix?
Then no, there is no such option using CLI.
Simplest way to do it is to copy images to desired path or to to copy with prefix and run image_optim on those. Also should be easy to implement this in ruby.
Do you think there are a lot of use cases for such functionality?

@toy
Copy link
Owner

toy commented Sep 29, 2016

@colthreepv ping

@colthreepv
Copy link
Author

colthreepv commented Sep 30, 2016

most use cases can be covered with a simple bash script or any other kind of language.
I just asked openly because some command line tools have this kind of prefixing options, so I would think it can be a nice-to-have!

Thanks for the ping back

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