Closed majaode closed 2 years ago
I encounter this issue as well. Then I find it actually unnecessary to use this library because basically it just copies the binaries to the project folder and runs the cwebp.exe
command.
Now I'm using the binary I have downloaded directly from Google official website for WebP and with ProcessBuilder
it works really well. Glad to see that your pull request is using ProcessBuilder
too as it's the right way to handle file names with spaces, which will be equivalent to adding double quotes when executing the command in Command Prompt. It's a shame that the author didn't know ProcessBuilder
.
I encounter this issue as well. Then I find it actually unnecessary to use this library because basically it just copies the binaries to the project folder and runs the
cwebp.exe
command.Now I'm using the binary I have downloaded directly from Google official website for WebP and with
ProcessBuilder
it works really well. Glad to see that your pull request is usingProcessBuilder
too as it's the right way to handle file names with spaces, which will be equivalent to adding double quotes when executing the command in Command Prompt. It's a shame that the author didn't knowProcessBuilder
.
can you explain it how to put those tools and use it. I am working on react native project which require gif to webp converter but confused where to put that binary file called gif2webp and how to access it in java file
I encounter this issue as well. Then I find it actually unnecessary to use this library because basically it just copies the binaries to the project folder and runs the
cwebp.exe
command. Now I'm using the binary I have downloaded directly from Google official website for WebP and withProcessBuilder
it works really well. Glad to see that your pull request is usingProcessBuilder
too as it's the right way to handle file names with spaces, which will be equivalent to adding double quotes when executing the command in Command Prompt. It's a shame that the author didn't knowProcessBuilder
.can you explain it how to put those tools and use it. I am working on react native project which require gif to webp converter but confused where to put that binary file called gif2webp and how to access it in java file
Now I understand how it woring. I also read the webp doc by google but I am afraid of wasting time and not achieving the goal right now. I would move further If I see the example. :(
OS: MacOS Mojave JDK: 1.8
Success:
Failed: