$command = "/usr/local/bin/wkhtmltoimage --quality 70 --crop-w 800 --crop-x 50 --javascript-delay 900 --height 800";
Hello, i've finished simple script to convert any url to jpg via wkhtmltoimage
im using this for facebook, but sometimes it works sometimes not
with default setting
--javascript-delay 200
screenshot was empty, with 900ms
delay it's working ok. but sometimes one or more image is missing, i've tried to disable javascript, or change wait time to even 2s but sometimes work, sometimes not.
I need simple solution to make screenshot from facebook url, but i dont want use third parties services. There is any setting to avoid this issue ? and retry when image was not saved ? Because sometimes also image is not saved, and this is too often to accept this.