HomePhabricator

Output SVG in scores
af73c9a7ddb8Unpublished

Authored by Ebe123 on Aug 4 2017, 6:43 AM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Output SVG in scores

This change makes scores be outputted in SVG, and rendered in-
browser if supported. A .png fallback is also created through
the MediaHandler, for both files to be output in an <img tag
with scrset as the SVG, as discussed in T134455.

The SVG output uses the '-dcrop' option, of which is under code
review: https://codereview.appspot.com/326960043/ . This option
automatically places all the music on 1 file, of which is trimmed.

As the '-dcrop' option outputs a trimmed file, the $wgScoreTrim
global has been removed as it is now automatic. Further, the
multipage functionality has been removed since all is outputted
in 1 file.

DO NOT MERGE UNTIL -DCROP IS RELEASED UPSTREAM.

Bug: T49578
Change-Id: Ieb13455825053cb187e6240b238fa7b6bd5c18c1

Details

Committed
Ebe123Aug 4 2017, 2:33 PM
Parents
rESCR5b666f401f66: Define npm peer dependency explicitly
Branches
Unknown
Tags
Unknown
References
refs/changes/09/370209/3
ChangeId
Ieb13455825053cb187e6240b238fa7b6bd5c18c1