hellokaton / webp-io

🌚 general format images and webp transform each other
Apache License 2.0
44 stars 18 forks source link

Copying cwebp lib to a custom directory #6

Closed sethu1012 closed 2 years ago

sethu1012 commented 4 years ago

Code has been modified to allow the developer to specify a custom location where webp libraries can be copied

KishorJena commented 2 years ago

If you are active please reply. I want to have a quick discussion on this

sethu1012 commented 2 years ago

@CrackerKSR what do you want to discuss about?

KishorJena commented 2 years ago

Where did you run this code? on pure java or android ?

actually I want to use it in android but it shows cwebp_tmp is not found. The folder is not being created. Should I use different path to work in android?

(btw Thanks for reply, Most of repo I found are inactive and published long ago almost a decade)

sethu1012 commented 2 years ago

Ran this code on a web app I was working on previously.

I'm not sure why you're getting that error. Can you please reproduce the error in a sample application and push it to GitHub? I'll fork it and let you know the cause/fix.

KishorJena commented 2 years ago

It is related to path I think. I just used context to get cache and asset path and it creates temp folder on cache path and copies the webp tool into the temp. But now when I try to execute the command it shows permission denied error. I will share the codes and errors asap.

sethu1012 commented 2 years ago

Is the issue resolved?

KishorJena commented 2 years ago

Is the issue resolved?

I was able to copy the libwebp tools and access them from String/ProcessBuilder. (Yeah the problem was with path.) This time the issue is Permission. it shows Permission Denied. I am not sure from where theese tools should run I tried app specific locations like cache, temp, data etc.