How to install wkhtmltoimage?

Hi! first of all sorry for my english. I have a project hosted in Platform.sh and We need to use KnpSnappy to convert from html to image. Everything works fine in the local environment but we have a problem to use it in platform.sh test environment. The problem is that It needs the libjpeg library. This is the error when I do “wkhtmltoimage -V” in hooks build in mi .platform.app.yaml file:

/app/.global/gems/wkhtmltoimage-binary-0.12.5/libexec/wkhtmltoimage-amd64: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory

I want to know how I can install libjpeg.so library on my host. I have tried to install some ruby gem libraries but nothing works.

Does anyone know how to do it? Thank you very much for the help

0

Comments

2 comments
Date Votes
  • Hi, look like the the latest release 0.12 rely on an old libjpeg.so.8 that is not installed anymore on recent distribution, cf libraries - Why is libjpeg.so.8 missing from Debian? - Unix & Linux Stack Exchange

    As a work around you can still maybe use an older release of wkhtmltoimage-binary the 0.11.0.1.1 look to work for me (talking with you on support found out the wkhtmltoimage-binary-0.12.4 works too)

    0
  • Finally I have downgrade the wkhtmltoimage library to 0.12.4 version. I have worked hard on the code but It works now. Thanks for your help

    0

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post