Use transparent rather than white background for ImageMagick SVG thumbnails
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 5 Feb 2015 18:46:30 +0000 (19:46 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 5 Feb 2015 19:23:34 +0000 (19:23 +0000)
commitde168bab7e106145043a245c5f12649e7f2abd00
tree341ce875befda0b10732692f1e03fae639f8f622
parent844618a231b795cdd18eb6f4a772f8dd89cfb315
Use transparent rather than white background for ImageMagick SVG thumbnails

Default value of $wgSVGConverters['ImageMagick'] now uses transparent
background with white fallback color, rather than just white background.
This is done by using #ffffff00 ("transparent white") as background
color (the PNG file format supports saving color for transparent
pixels).

I could find no historical records for why it was done this way;
possibly the intent was to display white rather than black background
in IE 6 (which doesn't support PNG transparency) or in other contexts
where transparent background is impossible.

Bug: T76475
Change-Id: Ief0c7d71c8cc157e256fc84b1b7be3c23cc5fd9b
RELEASE-NOTES-1.25
includes/DefaultSettings.php