bmpenuelas / waveform-render-vscode

Render waveforms inside VSCode with WaveDrom
MIT License
34 stars 4 forks source link

[Feature-Request] Save preview as image file (png/svg) #6

Closed joshrsmith closed 5 years ago

joshrsmith commented 5 years ago

Would it be possible to allow saving the preview image as a PNG/SVG? The wavedrom native editor supports this, but not from what I can tell in VS Code.

Someone who wants to save as PNG now must screen shot, or paste it back in the original wavedrom editor. If there is another way I am not thinking of let me know.

bmpenuelas commented 5 years ago

Hi, PNG rendering (and saving) is done by the engine. Web browsers do it all right, but unfortunately VSCode doesn't.

Save as SVG, on the other hand, works correctly (right-click on the waveform).

joshrsmith commented 5 years ago

Ok, thanks for the tip. Thanks for the useful extension!

bmpenuelas commented 5 years ago

Np, I will reopen this if it's possible to do it in the future.