Prevent clipping of column names when exporting diagram

This is my workflow.

1) Right click on a mysql database in the database explorer and choose Diagrams -> Show Diagram...

2) Click the Export Diagram button in the toolbar -> Export to image and choose png.

The image exports but tables with longer column names always end up with the text clipped. The text is not clipped when viewing the diagram in DataGrip, but it is always clipped when viewing the exported png. 

I thought I may get around this by exporting the image as an svg, but doing this always results in nothing more than an empty svg file. DataGrip creates a file, but it is an svg file with no contents. 

How can I export Diagrams to image without having the table's column name text clipped?

Below is an example of how a particular table looks when viewing it in DataGrip (1st photo) vs viewing it in an exported png (2nd photo).



Hi Ap,

There's an issue with diagram export to SVG format reported here:

As for the export to image formats, we couldn't reproduce this behavior where a single letter is clipped while the diagram is in full size (referring to your screenshots). What's your current DataGrip version?


Thank you for looking into it. Here's my version and system info (which I should have included in the first place). I do have the experimental UI enabled, but I tried and had the same results with it disabled too. 

DataGrip 2023.1.1
Build #DB-231.8770.3, built on April 11, 2023
Licensed to Accounts Payable
Subscription is active until September 7, 2023.
Runtime version: 17.0.6+10-b829.9 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 6.2.0-20-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16

Non-Bundled Plugins:
    com.4lex4.intellij.solarized (2.4.0)
    IdeaVIM (2.2.0)
    com.mallowigi (90.0.0)
    com.chrisrm.idea.MaterialThemeUI (8.6.3)

Current Desktop: ubuntu:GNOME

Thanks for the update.

This is interesting as I'm also running an Ubuntu 21.05 with DataGrip 2023.1.1 on it, and I do not observe this behavior with the diagram export. 

Can I ask you to take a screenshot of the whole diagram window in DataGrip and also, attach an exported file with a graphical extension? This is to cross-check things.

Sure, here's a screenshot of the entire window with a diagram open, and a png of the same diagram exported from DataGrip. The text is clipped in the diagram viewer inside DataGrip at some zoom levels too. This isn't really a problem though, because I can zoom in/out to make it not clipped. And below this I included a png of this diagram exported. I've also tried exporting to jpg, and gif, but the clipped text persists. Also tried disabling all installed plugins, including theme and icon plugins, and this didn't make a difference either. Thanks again for looking!


A .png export of the above diagram




Bumping this

Apologies for replying to you late.

This behavior doesn't get reproduced even on machines with the same environment. 

Can you upgrade to 2023.1.2 version and see if this issue is present there?

Please sign in to leave a comment.