Export to SVG with trim via command line results in blank image

• Apr 15, 2020 - 08:09
Reported version
3.4
Type
Functional
Frequency
Once
Severity
S4 - Minor
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

This issue was originally posted in support forum here.

When exporting musicxml file without trimming all notes, stave, signature are viewable. However, when setting trim to 0 the resulting SVG does not display anything. The SVG file has content but might not be within its own viewport.

The musicxml file (part.xml) is generated using the python package music21.

This happens on Windows and Linux.

I've attached the input file and two output files demonstrating the issue.

The first output file (part-1.svg) shows graphics and is generated like so:

musescore3 part.xml -o part.svg

And the second (part-trimmed-1.svg) without viewable graphics is generated using:

musescore3 part.xml -o part-trimmed.svg -T 0

I've also included a 3rd png image which shows trimming does work for non-svg format. This was generated using:

musescore3 part.xml -o part-trimmed.png -T 0

Here is the png inline:

part-trimmed-1.png

Attachment Size
part-trimmed-1.svg 10.44 KB
part.xml 1.69 KB
part-1.svg 10.42 KB
part-trimmed-1.png 5.91 KB

Comments

Fix version
3.5.0