Bug 527047 - Provide scale level when exporting diagrams as image
Summary: Provide scale level when exporting diagrams as image
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.1.0   Edit
Hardware: PC Windows NT
: P3 enhancement (vote)
Target Milestone: 5.1.1   Edit
Assignee: Laurent Fasani CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-11-09 07:00 EST by Jessy Mallet CLA
Modified: 2018-02-01 03:25 EST (History)
3 users (show)

See Also:


Attachments
Test case to use. (8.89 KB, application/x-zip-compressed)
2017-12-01 05:02 EST, Jessy Mallet CLA
no flags Details
ScreenShot of the Export dialog (11.02 KB, image/png)
2017-12-01 05:04 EST, Jessy Mallet CLA
no flags Details
ScreenShot of the diagram preferences. (27.27 KB, image/png)
2017-12-01 05:06 EST, Jessy Mallet CLA
no flags Details
Video of preferences and export Diagram as image dialog (deleted)
2017-12-06 10:45 EST, Jessy Mallet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jessy Mallet CLA 2017-11-09 07:00:34 EST
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.
Comment 1 Laurent Redor CLA 2017-11-24 06:04:48 EST
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.
Comment 3 Jessy Mallet CLA 2017-12-01 04:54:41 EST
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)
Comment 4 Jessy Mallet CLA 2017-12-01 05:02:03 EST
Created attachment 271729 [details]
Test case to use.
Comment 5 Jessy Mallet CLA 2017-12-01 05:04:17 EST
Created attachment 271730 [details]
ScreenShot of the Export dialog
Comment 6 Jessy Mallet CLA 2017-12-01 05:06:05 EST
Created attachment 271731 [details]
ScreenShot of the diagram preferences.
Comment 7 Jessy Mallet CLA 2017-12-06 10:45:48 EST
Created attachment 271797 [details]
Video of preferences and export Diagram as image dialog
Comment 8 Laurent Fasani CLA 2018-01-09 04:29:28 EST
being validated...
Comment 9 Laurent Fasani CLA 2018-01-09 04:41:00 EST
Validated with Sirius 5.1.1rc2_20180105
Comment 10 Pierre-Charles David CLA 2018-02-01 03:25:36 EST
Available in Sirius 5.1.1. See https://wiki.eclipse.org/Sirius/5.1.1 for details.