-
Notifications
You must be signed in to change notification settings - Fork 109
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
Recursive directories via command line #4
Comments
Hi Jake, Thank you, I am glad that my work it helpful ) For now there is no option to tell image_optim to find images in directory. Though you can pass all files (using globs or I remember that I was thinking of adding recursive search but don't remember why I did not implement it. It should be simple to add, I'll try to do this soon. |
Thanks Ivan, I'm using |
Only now I've noticed that command seems wrong as I've already added code for recursive searching for files, though I should add selecting only images and change how non images are handled inside, than there will be next release. |
0.6.0 is out with recursive search for images. |
How do you utilize the -r recursive option? |
@el3ment For example |
Thanks for the timely response! Just as a small caveat - in directories with lots of folders and files, image_optim -r */.{jpg,png} or image_optim -r ** will result in an "Argument List Too Long" shell error - do you know of a convenient way of avoiding this error? |
@el3ment In your case simple |
Hi all , Please i have you probleme when typing : image_optim *.{jpg,png,gif,svg} on my shell i got this : WARN: advpng 1.15 at /usr/bin/advpng (< 1.17) does not use zopfli Can you help me please ? Thank you |
@bloodymind Simplest way to get up-to-date versions of nearly all binaries is by installing Otherwise please check binaries installation section in readme. |
Hi @toy , That's working now 👍 Thank you. |
Hey Ivan,
First thank you so much for your work on this.
Is there a way to target multiple directories or recurse through directories and compress all images within?
The text was updated successfully, but these errors were encountered: