alvarcarto / url-to-pdf-api

Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
MIT License
7.03k stars 779 forks source link

Adding enableGPU to enable GPU usage in headless chrome #123

Closed tranv94 closed 4 years ago

tranv94 commented 4 years ago

I'm using a library (mapboxGL) that requires the GPU to render certain services. By default chrome runs with --disable-gpu.

I've set the conditional statement for Windows users because the chrome document says it is an ongoing issue https://bugs.chromium.org/p/chromium/issues/detail?id=737678

kimmobrunfeldt commented 4 years ago

Hi, looks like a great addition. Could you add an explanation of the option to the readme? Then ready to merge