Page MenuHomePhabricator

MediaWiki is incompatible with newer versions of Inkscape
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Set up a wiki with inkscape svg conversion and use the newest version of inkscape

What happens?:

We get "invalid option -f"

What should have happened instead?:

Conversion works without issue.

Software version (skip for WMF-hosted wikis like Wikipedia):
1.40.1

Other information (browser name/version, screenshots, etc.):

inkscape 1.2.2

The problem is that https://github.com/wikimedia/mediawiki/blob/master/includes/config-schema.php#L218 will no longer work as the command line options have changed in newer versions. -f and -e are no longer valid options.

I was able to work around by overriding the default conversion command, but this should be fixed in MW core.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Also, -z was an alias for --without-gui and is not needed anymore since Inkscape 1.0.

'inkscape' => '$path/inkscape -z -w $width -f $input -e $output', should probably become
'inkscape' => '$path/inkscape -w $width -o $output' $input,

Change 975027 had a related patch set uploaded (by MacFan4000; author: MacFan4000):

[mediawiki/core@master] Fix compatibility with the latest versions of Inkscape

https://gerrit.wikimedia.org/r/975027

And do the older versions support the new syntax as well, or did they completely f' it ?

speaking of old stuff.. maybe we should remove the sodipodi preset ? Its last release was in 2004.