Workaround image magick issue with greyscale xcf files
authorBrian Wolff <bawolff+wn@gmail.com>
Sat, 7 Jun 2014 21:29:18 +0000 (18:29 -0300)
committerBrian Wolff <bawolff+wn@gmail.com>
Fri, 20 Jun 2014 00:06:23 +0000 (21:06 -0300)
commit24dcc22614b013e1d6ae5161e259e145195f3aeb
tree9ca00fd12715434f19dd929675a0ffbd9faa3572
parenta6c074a9444c8feaf71d5e0063e4318f1e676bb4
Workaround image magick issue with greyscale xcf files

IM doesn't seem to properly interpret greyscale xcf files
as being greyscale. Tell it to just take the red channel
in such a case.

Bug: 66323
Change-Id: I46302d43e1029d815be99f481f3942481becd74f
includes/media/Bitmap.php
includes/media/XCF.php
tests/phpunit/includes/media/XCFTest.php [new file with mode: 0644]