| Summary: | Export as image quality for jpg format | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Laurent Redor <laurent.redor> | ||||||
| Component: | Diagram | Assignee: | Laurent Redor <laurent.redor> | ||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||
| Severity: | major | ||||||||
| Priority: | P3 | CC: | maxime.porhel | ||||||
| Version: | 0.9 | Keywords: | triaged | ||||||
| Target Milestone: | 2.0.0 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Laurent Redor
It seems that we can now directly change the compression property of the ImageLoader (org.eclipse.swt.graphics). The specific SiriusFileFormat and SiriusImageLoader are no longer useful. This property can be directly changed in the method org.eclipse.sirius.diagram.ui.tools.api.part.DiagramEditPartService.saveToOutputStream(OutputStream, Image, ImageFileFormat, IProgressMonitor) if the imageFormat is JPG. Warning: This change should be tested on all supported platform. Created attachment 243970 [details]
Quality with default compression (75)
Created attachment 243971 [details]
Better quality (compression 100)
Proposition of solution: https://git.eclipse.org/r/33563 Tested on Juno3 platform also checked on Luna by Mickael Lanoe Available in Sirius 2.0.0. |