Seamless SVG copy-paste on the web

Share

Today we’re announcing support in Microsoft Edge, and Chromium browsers, for SVG files in the Async Clipboard API. This means copying and pasting SVG data across any app that wants to use SVG, whether it’s native or web, is now possible.

An SVG file in Windows Explorer, next to a PowerPoint window, where the image was pasted, and next to Edge, where the image was also pasted in a webpage.

SVG images are a great option for rendering high-quality visuals and graphics on the web. They’re space efficient and the image quality isn’t affected when resizing the image. But, when it comes to handling SVG image formats in apps, the story is a bit different.

Native apps designed to support SVG files work with them seamlessly. For instance, you can copy an SVG file from the Windows explorer and paste it into Microsoft PowerPoint, or the other way around.

However, on the web, the legacy DataTransfer API, which is used to obtain the data stored in the clipboard, doesn’t have built-in support for SVG MIME type files. This makes it difficult for web apps to support copying or pasting SVG content.

This has been a recurring problem for both…

Read the rest of the article

Remember to like our facebook and our twitter @WindowsMode for a chance to win a free Surface Pro every month.