Geek Culture
Published in

Geek Culture

Converting SVG To Image (PNG, Webp, etc.) in JavaScript

How to convert SVG to image in the browser without dependencies.

Photo by Justin Aikin on Unsplash

​Last Monday I built and published a new Web Component, developed with StencilJS, to generate social images dynamically in the browser.

For a given text and logo, the component renders a shadowed SVG that can be converted to an image (PNG, Webp, etc.), and does so without any…




A new tech publication by Start it up (

Recommended from Medium

How to install React Native App developed using Expo CLI on my Phone?

React js Warning: ReactDOM.render

Some need to know tips to optimize your development and make your coding easier :)

An easy way to make dark / Light theme with Reactjs and Matrial UI

Hacking the Tenda AC10-1200 Router Part 1: CVE-2018–16334

Compress Images Before Upload in React with React Image File Resizer

Web Application Deployment — Angular, Flask — GoDaddy

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
David Dal Busco

David Dal Busco

Freelancer by day | Creator of DeckDeckGo by night | Organizer of the Ionic and IndieHackers Zürich Meetup

More from Medium

Why You Must Experience Web Component At Least Once In Your Lifetime

How to Implement a Linked List in JavaScript

chore: ramda-adjunct v2.36.0

Unexpected end of JSON input error occurred when executing yarn install