vre2h / use-react-screenshot

163 stars 37 forks source link

Create png with transparency #50

Open jeffceriello opened 1 year ago

jeffceriello commented 1 year ago

Hi, is it possible to generate a png instead of a jpeg?

I have these settings

const [image, takeScreenshot] = useScreenshot({
        type: "image/jpeg",
        quality: 1.0
});

and tried with type: "image/png" but that didn't work.

Is there a way to generate a PNG image with a transparency and a transparent background?

tomimarkus991 commented 1 year ago

createFileName("png", "name");