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

Open .drawio.png and .drawio.svg files directly #41

Open
saierd opened this issue Mar 2, 2023 · 1 comment
Open

Open .drawio.png and .drawio.svg files directly #41

saierd opened this issue Mar 2, 2023 · 1 comment

Comments

@saierd
Copy link

saierd commented Mar 2, 2023

Saving diagrams as png or svg file with the embedded diagram is often very useful, since it allows an easy preview in other programs. This is already possible using the drawio-nextcloud plugin, but in order to edit such a file one has to

  • download the file from Nextcloud
  • open the editor
  • open the file
  • edit it
  • re-export as .drawio.png
  • re-upload to Nextcloud

Would it be possible to open such files directly from the Nextcloud files app? In that case the save button should re-export it to the same file that was opened originally.

@mdrobisch
Copy link

mdrobisch commented Feb 13, 2024

I tried the following simple approach with not luck :-( .
Changing the mime mapping: in config/mimetypemapping.json

like:

{
    "drawio": [
        "application/x-drawio"
    ],
    "png": [
        "application/x-drawio"
    ]
}

Will not work.

The file remains to be opened with the image viewer.

Just fyi. Feedback is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants