Hi,
I'm hoping this will reach you still, I know it's been a while. I'm trying to run the command:
java -jar easyjasub.jar -ja 01.srt -tr disabled -wk wkhtmltoimage
But it stops at each conversion-- it will begrudingly still convert that one page to an image but then halt. So I would have to keep running this command over and over until I get through all the HTML pages (which can be a lot...) This is the error message I am getting, and I am not sure if it is a permissions issue (I've chmod u+x on the parent and child folders). Any help would be great, I'd love to be able to use this!
`onWriteImagesStart /Users/Sherlock/Sandbox/easyjasub/01_easyjasub wkhtmltoimage 1280
easyjasub-cmd 0.6.2 http://easyjasub.sourceforge.net built on 2015-01-05
Execution error:
Error invoking wkhtmltoimage to write files on folder /Users/Sherlock/Sandbox/easyjasub/01_easyjasub : Error invoking wkhtmltoimage command, it returned 1`
Anonymous
I have found that you need to pass
--enable-local-file-accessto thewkhtmltoimagein order to avoid this problem, so I have created a batch file with the following content and passed the name to theeasyjasub:You are a hero
Just to clarify regarding the methodology, so you:
"C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe" --enable-local-file-access %*easyjasub.exe -ja jap.srt -tr eng.srt -wk "wkhtmltoimage.bat"Did I get that right? Cause my process gets stuck at
Last edit: joshctk 2024-09-26
I guess the fix is to just add the option to the command runner https://github.com/riccardove/easyjasub/blob/master/easyjasub-lib/src/main/java/com/github/riccardove/easyjasub/WkHtmlToImageProcessBuilder.java
It was a long time ago, I need to rethink how to release this stuff ...