Community
Participate
Working Groups
In order to control resolution of image and time to export diagram, a scale level should be add on export diagram popup and Sirius diagram preference page. If _Auto-scale_ is checked with level to 100%, diagram will be scaled to the maximum possible size. This can produce higher resolution images in long time. If _Auto-scale_ is checked with level to 0%, diagram will be not scaled. Images will be produced with lower resolution but also with shorter time. This new parameter allows you to choose the tradeoff you want.
During test of this issue, another problem has been detected: bug 527717, Quality of edit part using SVG image is not improved when exporting as image with max scale.
Gerrit change https://git.eclipse.org/r/111229 was merged to [master]. Commit: http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/commit/?id=f2b96666f3b4d5529d9c8fff0e1b74353c238922
Manual Scenario to reproduce : * import the attached testSizeLevel project in your workspace, * In the preferences page Sirius > Sirius Diagram, make sure that the "Size of exported image" is set to Max (default value) and choose level size to nominal, * Open the session and launch "Export representations as image" action -> The export dialog box has the "Image Size" set to nominal -> Diagrams are exported quickly in nominal resolution (35 images of 391Ko) * Launch Export representations as image action and set the size to middle between nominal and Max -> Diagrams are exported in middle resolution but with longer time (35 images of 21.9Mo exported in around 45 seconds) * In the preferences page Sirius > Sirius Diagram, make sure that the "Size of exported image" is set to Nominal and choose level size to Max, * Open the session and launch "Export representations as image" action -> The export dialog box has the "Image Size" set to max -> Diagrams are exported slower than previously but with better resolution (35 image of 57.1 Mo exported in around 2min30)
Created attachment 271729 [details] Test case to use.
Created attachment 271730 [details] ScreenShot of the Export dialog
Created attachment 271731 [details] ScreenShot of the diagram preferences.
Created attachment 271797 [details] Video of preferences and export Diagram as image dialog
being validated...
Validated with Sirius 5.1.1rc2_20180105
Available in Sirius 5.1.1. See https://wiki.eclipse.org/Sirius/5.1.1 for details.