This is a Chrome extension allowing you to copy SVG image from website into a clipboard in PNG format compatible with Microsoft Office suite. This is intended to be used in Windows only.
It has been done because I often want to copy&paste plots from Jypyter (Lab) running on Chrome into some presentations, and Chrome is missing SVG copy functionality.
It consists of two parts:
-
Chrome extension based on SVG2PNG code.
NOTE: For Jupyter or JupyterLab use
%config InlineBackend.figure_format = "svg"
to switch to SVG Matplotlib backend. This may improve your notebook sizes and make them resolution independent. -
Chrome Native Messaging host written in python.
-
Chrome extension can be installed using developer mode via
chrome://extensions/
. -
Native messaging host can be installed via
host/install_host.bat
Released under MIT license, see LICENSE.