Bug 527717

Summary: Quality of edit part using SVG image is not improved when exporting as image with max scale
Product: [Modeling] Sirius Reporter: Laurent Redor <laurent.redor>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: florian.barbin
Version: 5.1.0Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=527047
Whiteboard:
Attachments:
Description Flags
ScreenshotWith100Percent.png
none
ScreenshotWith400Percent.png
none
exportWithNominalScaling.png
none
exportWithMaxScaling.png
none
Bug527717Project.zip none

Description Laurent Redor CLA 2017-11-24 05:49:00 EST
Created attachment 271624 [details]
ScreenshotWith100Percent.png

Since bug 527047 there is the capability to change the scale level from nominal to max when exporting diagram as image. The goal is to increase the quality of the exported image.

But there is a problem with edit part using SVG image. The SVG quality is not improved. This is visible on the joined images.

* ScreenshotWith100Percent.png: SVG image rendered with a zoom of 100%
* ScreenshotWith400Percent.png: SVG image rendered with a zoom of 400%. The quality is OK
* exportWithNominalScaling.png: Export of a diagram, containing edit parts using SVG image, using nominal scale. The global quality is poor.
* exportWithMaxScaling.png: Export of a diagram containing edit parts using SVG image, using max scale. The global quality is improved (visible on edges and label). But the SVG image a the same quality as nominal scaling.
Comment 1 Laurent Redor CLA 2017-11-24 05:49:27 EST
Created attachment 271625 [details]
ScreenshotWith400Percent.png
Comment 2 Laurent Redor CLA 2017-11-24 05:49:45 EST
Created attachment 271626 [details]
exportWithNominalScaling.png
Comment 3 Laurent Redor CLA 2017-11-24 05:50:03 EST
Created attachment 271627 [details]
exportWithMaxScaling.png
Comment 4 Laurent Redor CLA 2017-11-24 06:02:37 EST
Steps to reproduce:
* Import project Bug527717 from Bug527717Project.zip in your workspace
* Open the diagram "new Diagram"
* Export this diagram as image with nominal scale.
* Export this diagram as image with max scale.
* Compare the quality of the tiger: It is the same. It should not.
Comment 5 Laurent Redor CLA 2017-11-24 06:03:27 EST
Created attachment 271628 [details]
Bug527717Project.zip

Bug527717Project.zip: Data from /org.eclipse.sirius.tests.swtbot/data/unit/swtImageBundle/bug431075