Bug 550924

Summary: Remove support for exporting diagrams as GIF or BMP and one of JPG/JPEG, maybe also PDF
Product: [Modeling] Sirius Reporter: Pierre-Charles David <pierre-charles.david>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: florian.barbin
Version: 6.2.0Keywords: triaged
Target Milestone: Next   
Hardware: All   
OS: All   
Whiteboard:

Description Pierre-Charles David CLA 2019-09-10 03:09:10 EDT
The diagram export code is a mess, with each format exercising slightly different code paths, each with its own bugs and limitations. GIF and BMP are mostly legacy formats, and if people really need them they can export in PNG and convert the image outside of Sirius.

For unkown historical reasons (inherited from GEF/GMF I believe), we also have separate code paths, with different results, for JPG and JPEG.

We should focus on supporting a limited set of formats and support them well:
* PNG for lossless bitmap export (from which any other bitmap format can be obtained using external tools)
* JPG/JPEG: choose the one which gives the best result and remove the other to serve the use case of lossy bitmap (small file size).
* SVG for vector-based format. It seems the code supports PDF, but this can be obtained from SVG (inkscape supports it, including from the command-line) and I'm not sure if it is used in practice.