Open Griffon26 opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.
Same here (v21.2.8). Save PNG with integrated diagram, open saved PNG with drawio, modify something and save it with ctrl-s leave the new PNG with many errors.
Workaround is to not save it via ctrl-s instead to use the export to PNG again.
I also ran into this issue, but I don't think this is a bug. I think the issue is that when exporting the diagram to PNG, the export settings are applied only to the image, but not the actual diagram. The diagram is embedded as-is and when you save the file again, the original diagram is saved. Unless you've configured the diagram settings to match what you select on PNG export, it will look wrong.
In my case, I exported without a transparent background and with a 10px border. After opening and saving again, the PNG had a transparent background and no border. To solve, I did the following:
After making these changes, saving the PNG diagram resulted in the expected format.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.
Preflight Checklist
You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.
Describe the bug Opening and saving a diagram exported as png may modify the diagram (it loses non-default export options such as border width and background).
To Reproduce Steps to reproduce the behavior:
Expected behavior Opening a png exported with certain options and saving it should not result in a different image
Screenshots If applicable, add screenshots to help explain your problem.
draw.io version (In the Help->About menu of the draw.io editor):
Desktop (please complete the following information):
Additional context Add any other context about the problem here.