epam / Indigo

Universal cheminformatics toolkit, utilities and database search tools
http://lifescience.opensource.epam.com
Apache License 2.0
313 stars 105 forks source link

Adjust the rendering of PNG and SVG formats for ACS style #2175

Open ljubica-milovic opened 2 months ago

ljubica-milovic commented 2 months ago

Background Currently, the settings are not supported by rendering in PNG and SVG format.

Requirements

Additional information

Full JSON file of Settings is: new JSON for settings.json.zip

The new settings hashSpacingUnit hashSpacing imageResolution related issue: https://github.com/epam/ketcher/issues/5152 hashSpacingUnit values can be in cm/pt/px/in hashSpacing number with 1 decimal places the settings were moved to https://github.com/epam/Indigo/issues/2246

render-image-resolution can be high/low; PNG images should be able to be exported with the resolution of 600ppi (ACS standard preferred resolution/high resolution)> Current resolution (72ppi) is considered as low resolution. Regardless of the resolution, the size of the image should be such that one bond is ~0,5cm (0,2in/14,4pt) long when printed/100% zoom.

The new settings bond-length-unit bond-length reactionComponentMarginSizeUnit reactionComponentMarginSize related issue: https://github.com/epam/Indigo/issues/2176

The new settings render-font-size-unit render-font-size-sub-unit render-bond-thickness-unit render-stereo-bond-width-unit related issue: https://github.com/epam/ketcher/issues/5200

The setting render-bond-spacing related issue: https://github.com/epam/ketcher/issues/5154

render-output-format-width render-output-format-hHeight are only for Indigo, Ketcher should not implement these parameters.

related task: https://github.com/epam/Indigo/issues/2246

AlexeyGirin commented 2 weeks ago

ACS-StyleGuide.pdf