ipydrawio icon indicating copy to clipboard operation
ipydrawio copied to clipboard

插入的图片是变形的

Open zi-done opened this issue 2 years ago • 1 comments

你好,我发现通过插件在jupyter-lab中安装的ipydrawio,插入本地图片,图片是变形,不知道为什么会出现这个问题。

zi-done avatar Apr 22 '22 04:04 zi-done

As machine translated:

Hello, I found that the ipydrawio installed in jupyter-lab through the plug-in, insert the local picture, the picture is deformed, I don't know why this problem occurs.

A screenshot might help, however links to local images will almost certainly break. I've found the following approach works fairly well:

  • open jupyterlab
    • open a diagram
    • open a Python notebook
      • display the file using a plain-old display in IPython

        import IPython.display
        IPython.display.Image('path-to-image.png')
        
        • drag the image output from the notebook into the diagram
          • this ensures the fully-embedded file gets stored in the diagram

bollwyvl avatar May 09 '22 14:05 bollwyvl