Different results on Windows and Linux

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
Notorious
Posts: 1
Joined: 2017-09-20T20:59:26-07:00
Authentication code: 1151

Different results on Windows and Linux

Post by Notorious » 2017-09-20T21:47:07-07:00

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)

User avatar
dlemstra
Posts: 1380
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Different results on Windows and Linux

Post by dlemstra » 2017-09-20T22:39:25-07:00

Have you tried upgrading your Linux version to the same version that you are using on Windows?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

Post Reply