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

Additional options: optimize (1) files directly & (2) non-destructive? #1

Open
JayBrown opened this issue Jul 4, 2018 · 2 comments
Labels

Comments

@JayBrown
Copy link

JayBrown commented Jul 4, 2018

Would be great to have two additional options:

(1) -f | --file <filepath> — direct path to a single (or multiple?) png/jpg/gif file(s) instead of directory path using -p

(2) -x | --non-destructive — keep the original file and write the new optimized file as <filename>-optimized.<extension> in the same working directory … alternatively: keep the original file as <filename>-original.<extension> … you'd have to be able to execute this together with e.g. -q and -l etc.

@zevilz zevilz added the feature label Jul 7, 2018
@zevilz
Copy link
Owner

zevilz commented Jul 7, 2018

Good idea @JayBrown!
I will add this options soon.

@VarunBatraIT
Copy link
Contributor

I think better is to simply change the directory - images/ optimized/ This way we can simply delete original image upon success.

zevilz pushed a commit that referenced this issue Apr 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants