Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

插入的图片是变形的 #93

Open
zi-done opened this issue Apr 22, 2022 · 1 comment
Open

插入的图片是变形的 #93

zi-done opened this issue Apr 22, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@zi-done
Copy link

zi-done commented Apr 22, 2022

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

@zi-done zi-done added the bug Something isn't working label Apr 22, 2022
@bollwyvl
Copy link

bollwyvl commented May 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants