google / guetzli

Perceptual JPEG encoder
Apache License 2.0
12.9k stars 977 forks source link

Can't open input file #272

Open arty35 opened 3 years ago

arty35 commented 3 years ago

I could convert tons of image. But It suddenly stop working. It says

2021-08-14 01:46:37: Can't open input file 2021-08-14 01:46:37: guetzli_windows_x86-64.exe --verbose --quality 90 --nomemlimit 'C:**.jpg' 'C:**_guetzli.jpg' 2021-08-14 01:46:37: Finished with 1

How can I solve this? I need to use this program :(

doterax commented 3 years ago

You should use exact filename, because guetzli doesn't support wildcards.

I continue supporting GPU accelerated guetzli in this fork: https://github.com/doterax/guetzli-cuda-opencl

And I have plans to support wildcards in near future.

But for now you can try to use this this wrapper for your task: https://github.com/tanrax/guetzli-recursively

g0blin-NN commented 1 year ago

@arty35 use the fd all directories from the current: fd -e jpg -x guetzli --verbose --quality 90 --nomemlimit "{}" "{.}_guetzli.jpg" current directory only: fd -d 1 -e jpg -x guetzli --verbose --quality 90 --nomemlimit "{}" "{.}_guetzli.jpg"