summaryrefslogtreecommitdiff
path: root/magick.c
diff options
context:
space:
mode:
Diffstat (limited to 'magick.c')
-rw-r--r--magick.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/magick.c b/magick.c
index 0950a10..444dd02 100644
--- a/magick.c
+++ b/magick.c
@@ -138,7 +138,9 @@ static Bool magickImageToFile (
result = MagickNewImage (wand, width, height, NewPixelWand ());
if (result != MagickFalse)
{
- MagickSetImagePixels(wand, 0,0, width, height, "BGRA", CharPixel, data);
+ MagickSetImagePixels(wand, 0,0, width, height, "RGBA", CharPixel, data);
+ /*FIXME: compiz passes the pixels in a different order than imagemagick is expecting, so flipping solves the problem*/
+ MagickFlipImage (wand);
result = MagickWriteImage (wand, file);
if (result != MagickFalse)
{