I loaded the sample diagram and then exported the image as PNG. I then dropped the PNG file into my browser (Chrome) and the image was cropped. The tables from the left-side are not visible.
Hi @Stephen_Felsher, we only export the diagram, we don’t export the editor.
If you need to interact with the dbml, we also have tools to do so.
Check out here: https://www.dbml.org/
Yes, I understand. I am saying that the image the tool has exported is cropped.
In that case, can you give us the link (id) of your diagram so we can inspect further on this.
- Load the
Sample
- Select
Export --> Export PNG
- Open the PNG.
My OS is Manjaro Linux, so Chrome opens the file in a program called Pix
. The image is cropped in that program. If I drag-and-drop the file into a tab in the Chrome browser, the image appears to be cropped. By cropped, I mean that the users
and orders
tables are not in the image. See included image.
Hi @Stephen_Felsher, we have inspected the issue and confirmed this is a bug.
You can workaround by moving the table around before export png and the image will not be cropped.
Just try the tool today and having same issue … the image is cropped (left side) when exporting to PNG
We are so sorry for the inconvenience, you can try moving the tables around before exporting to PNG so that the image will not be cropped.
As @Khoa_Huynh mentioned, just move one of the tables in the editor before exporting. Once you move the table, the exported image will be correct.
Hi @Stephen_Felsher, thanks for suggestion! But it does not work for me.
Steps:
- Click to Auto-arrange
- Move one (random) table to the top a little bit
- Export PNG
Am I missing anything?
I just tried it again. I did not auto-arrange.
- Opened my project. I only have four (4) tables and they are laid out from left-to-right.
- Exported as PNG. Verified that the image was cropped.
- Moved the left-most table in the diagram.
- Exported as PNG again. Verified that the image was not cropped.
I have about 25 tables and it could be the problem. The area exporting might not be big enough to include all of them, my guess.
We are working on to fix this and will keep you informed when the patch is released.