amitsolanki24_'s avatar

Convert svg to png/jpeg/jpg/webp

How can I convert svg to (png,jpeg,jpg and webp) in any mention format using pure javascript?

Anyone have any idea?

0 likes
5 replies
Tray2's avatar

Why would you want to do that?

1 like
amitsolanki24_'s avatar

@Tray2 I'm using this package https://github.com/SimpleSoftwareIO/simple-qrcode to generate QR code.

This library return qr code in svg format I have also tried png and jpeg format but both are not working giving error imagick extension related I have tried to download and manually add imagick library not working.

So I wnt to convert svg output given by QR code library into png.

Please or to participate in this conversation.