tomayac’s avatartomayac’s Twitter Archive—№ 20,502

  1. …in reply to @steveruizok
    @steveruizok Copying as a file isn’t supported yet (only the other way round: pasting a file), but you can copy pixel data as PNG. web.dev/async-clipboard/. See github.com/tomayac/SVGcode/blob/main/src/js/clipboard.js for dealing with it in prod (it’s ugly, but once older browsers become irrelevant the code can be cleaned).