Bug 550924 - Remove support for exporting diagrams as GIF or BMP and one of JPG/JPEG, maybe also PDF
Summary: Remove support for exporting diagrams as GIF or BMP and one of JPG/JPEG, mayb...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 6.2.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: Next   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2019-09-10 03:09 EDT by Pierre-Charles David CLA
Modified: 2020-11-04 05:16 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.