Topic on Extension talk:Score

Make images transparent

2
Summary by Jdforrester (WMF)

Merged, will be released with REL1_29. Thanks!

VolkoV (talkcontribs)

I changed the code of score.body.php, this way all white is changed to transparent which looks better if your wiki has a different background Color or Image:

	private static function trimImage( $source, $dest ) {
		global $wgImageMagickConvertCommand;

		$cmd = wfEscapeShellArg( $wgImageMagickConvertCommand )
			. ' -trim -transparent white ' //Changed by VolkoV
			. wfEscapeShellArg( $source ) . ' '
			. wfEscapeShellArg( $dest );
		wfShellExec( $cmd, $rc );
		if ( $rc != 0 ) {
			throw new ScoreException( 'score-trimerr' );
		}
	}
MarkAHershberger (talkcontribs)