Menu

#4 wkhtmltoimage halts at each conversion from html to png

0.6.2
open
Riccardo
None
2024-09-28
2022-10-08
Anonymous
No

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`

Discussion

  • apsen

    apsen - 2024-09-14

    I have found that you need to pass --enable-local-file-access to the wkhtmltoimage in order to avoid this problem, so I have created a batch file with the following content and passed the name to the easyjasub:

    wkhtmltoimage.exe --enable-local-file-access %*
    
     
    • joshctk

      joshctk - 2024-09-26

      You are a hero

      Just to clarify regarding the methodology, so you:

      1. Create a .bat file in the easyjasub directory that contains something like "C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe" --enable-local-file-access %*
      2. Then run something like this in the easyjasub directory easyjasub.exe -ja jap.srt -tr eng.srt -wk "wkhtmltoimage.bat"

      Did I get that right? Cause my process gets stuck at

      onWriteImagesStart C:\Users\vboxuser\Downloads\easyjasub-0.6.2-windows-dist\anime_easyjasub wkhtmltoimage.bat 1280
      
       

      Last edit: joshctk 2024-09-26

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB