Expose background option in constructor for PDF input
Question about an existing feature
When install a custom libvips with PDF support, we can convert a PDF file to an PNG image with sharp. However, when the PDF has transparent background, the output image always shows white background.
What are you trying to achieve?
https://github.com/libvips/libvips/issues/995
It seems that libvips provides the option "background" when converting PDF to PNG with transparent background:
vips copy transparent.pdf[background=0] x.png
Does sharp also have such option? Thanks.
We'd need to expose the background option in the constructor API. Happy to accept a PR, if you're able.
https://sharp.pixelplumbing.com/api-constructor#parameters https://www.libvips.org/API/current/VipsForeignSave.html#vips-pdfload