Page 1 of 1

Different results on Windows and Linux

Posted: 2017-09-20T21:47:07-07:00
by Notorious
Hi!
Windows lib version - 7.0.7-1 Q16 x86
MSVC 2013 32bit
result
Image

Linux lib version - 7.0.6-9 Q16 x86_64
GCC 6.3.0
result
Image

Code

Code: Select all

#include <Magick++.h>

using namespace Magick;
int main(int argc, char *argv[])
{
    InitializeMagick(*argv);

    Image alpha("parking.png");
    Image back(Geometry(150,60),ColorRGB(0.2,0.7,0,0.7));
    back.type(TrueColorAlphaType);
    back.depth(32);

    DrawableList tasks,tasks2;

    alpha.type(TrueColorAlphaType);
    tasks.push_back(DrawableCompositeImage(10,10,alpha));

    tasks2.push_back(DrawableFillColor(ColorRGB(0.1,0.1,0.7,0.4)));
    tasks2.push_back(DrawableRectangle(10,10,20,20));
    alpha.draw(tasks2);

    tasks.push_back(DrawableCompositeImage(80,10,alpha));

    back.draw(tasks);
    back.write("result.png");
    return 0;
}
Alpha channel on parking.png overlaps the background on linux. How can i have result on linux like on windows? (sorry for my bad english)

Re: Different results on Windows and Linux

Posted: 2017-09-20T22:39:25-07:00
by dlemstra
Have you tried upgrading your Linux version to the same version that you are using on Windows?