For xcf files, compose layers before scaling
authorBrian Wolff <bawolff+wn@gmail.com>
Sun, 20 Jul 2014 14:44:50 +0000 (11:44 -0300)
committerBrian Wolff <bawolff+wn@gmail.com>
Sun, 20 Jul 2014 14:44:50 +0000 (11:44 -0300)
commitbceb8b6acfeff8e80a716e850c4a641b1ef0e085
treed50f5ab2fe434d9925af76ed567d9d692f4328c8
parentbbe4a6e18384911c15bc8e5d658c1e005a90f06f
For xcf files, compose layers before scaling

Otherwise if some layers are a different size than the overall
image, the output will be distorted as all the layers will be
resized.

An example of such a file is the 2007 version of
[[File:Blason_Saint-Malo.xcf]] (Need a version of image magick
newer than production to see the issue).

Bug: 35622
Change-Id: Ibbe8645afc151b0e9b658f762497071d67be3836
includes/media/Bitmap.php