google/guetzli

Can't open input file

arty35 opened this issue · 2 comments

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 :(

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

@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"