nextcloud-drawio icon indicating copy to clipboard operation
nextcloud-drawio copied to clipboard

Display preview image of diagram instead of xml code in nextcloud preview panel

Open sthag opened this issue 7 years ago • 3 comments

Nextcloud displays a preview of the selected file at the top of the right pane of the file browser view. As the drawio file is an xml file it shows the code in this preview. This is not helpful at all. Adding to that it is only one line so there's hardly any information shown.

If a diagram gets bigger the preview takes longer and longer. For example I've got an xml-file of ~10MB. After closing the drawio app it takes quite some time for the preview to update. During this time nextcloud is not responding.

My suggestion would be to replace the preview with an image of the diagram, like the small outline window shows within drawio.

sthag avatar Jun 29 '17 15:06 sthag

draw.io can load/save as SVG with embedded XML and PNG with embedded XML. Maybe switching to one of those formats will solve this. Drop me an email @pawelrojek [email protected].

davidjgraph avatar Mar 08 '18 00:03 davidjgraph

i`am try create preview plugin. can anybody say how to call preview generation of draw.io diagram?

Luckyvb avatar Nov 16 '19 10:11 Luckyvb

any chance this is going to get fixed?

chobeat avatar Feb 28 '21 20:02 chobeat