epam / epam/Indigo

Some structure elements disappear when saving as SVG or PNG in expanded or contracted state

Open
#3,764 1 comment 0 reactions 1 assignee Claimed by @PaulinaKacz View on GitHub
Export to SVG/PNG Priority: Medium Severity: Medium
Dominant language
C++
Stars
406
Forks
134
Avg merge
2d 11h
Merged PRs (30d)
24

Description

**Description:**
When saving a structure in either expanded or contracted macromolecule state using the Save as SVG or PNG option, some elements of the structure are missing in the preview and final exported image.
For example, in expanded view, brackets and labels disappear; in contracted view, only partial bonds are shown.

**Steps to Reproduce**
1. Open a structure in micromolecule mode. [ketcher (14).zip](https://github.com/user-attachments/files/21015292/ketcher.14.zip)
2. Go to Save Structure, choose SVG Document or PNG image.
3. Observe the result - parts of the structure are missing.
4. Repeat the steps for contracted view - similar result.

**Actual behavior**
In expanded view, brackets and labels disappear; in contracted view, only partial bonds are shown.

**Expected behavior**
All structural components (atoms, brackets, bonds, labels) should be included and correctly rendered in the exported image, matching what is displayed on the canvas.

**Screenshots**

![Image](https://github.com/user-attachments/assets/981a52a1-3016-45e9-b74e-3037b1f84f1b)
![Image](https://github.com/user-attachments/assets/7deb0a99-7a1a-4fc1-a217-9a259776dac9)

**Desktop:**
- OS: Windows 11
- Browser Chrome
Version 137.0.7151.104 (Official Build) (64-bit)

**Ketcher version**
[Version 3.6.0-rc.1]
**Indigo version**
[Version 1.34.0-rc.1]

This bug was found while testing: https://github.com/epam/ketcher/issues/7164

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.