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
This commit is contained in:
parent
bbe4a6e183
commit
bceb8b6acf
1 changed files with 2 additions and 2 deletions
|
|
@ -366,7 +366,7 @@ class BitmapHandler extends ImageHandler {
|
|||
// background colour. After merging we reset the background
|
||||
// to be white for the default background colour setting
|
||||
// in the PNG image (which is used in old IE)
|
||||
$animation_post = array(
|
||||
$animation_pre = array(
|
||||
'-background', 'transparent',
|
||||
'-layers', 'merge',
|
||||
'-background', 'white',
|
||||
|
|
@ -382,7 +382,7 @@ class BitmapHandler extends ImageHandler {
|
|||
// bug 66323 - Greyscale images not rendered properly.
|
||||
// So only take the "red" channel.
|
||||
$channelOnly = array( '-channel', 'R', '-separate' );
|
||||
$animation_post = array_merge( $animation_post, $channelOnly );
|
||||
$animation_pre = array_merge( $animation_pre, $channelOnly );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue