composite on x86_64 is strange
Posted: 2009-04-02T15:24:18-07:00
Hello.
I faced problem with composite.
I have very small test code:
files:
top.png: http://pic.ipicture.ru/uploads/090403/TN42cTRVy3.png
bottom.png, just transparent image 110px × 130px with blue border: http://pic.ipicture.ru/uploads/090403/WgaekwSWht.png
top-over-bottom.png, right version: http://pic.ipicture.ru/uploads/090403/oVY7gt7W93.png
top-over-bottom.png, not right version: http://pic.ipicture.ru/uploads/090403/4qTnz3iQOg.png
on my home pc i have right version. but on server i have image that is very similar to bottom.png.
but
works perfect on both, my home pc and server
Info about server:
cat /etc/redhat-release
CentOS release 5.2 (Final)
gcc --version
gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)
/usr/local/bin/Magick++-config --version
6.4.2 Q8
ImageMagick configure string
./configure --with-quantum-depth=8 --without-perl
uname -a
Linux xxxx.net 2.6.18-92.1.17.el5 #1 SMP Tue Nov 4 13:43:30 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
Looks like its bug.
Could anybody approve or/and fix, pls.
And if it will possible, post patch here.
Thanks.
I faced problem with composite.
I have very small test code:
Code: Select all
#include <Magick++.h>
#include <iostream>
using namespace std;
using namespace Magick;
int main(/*int argc,char **argv*/)
{
Image top("top.png"), bottom("bottom.png");
try {
bottom.composite(top, CenterGravity, OverCompositeOp);
bottom.write("top-over-bottom.png");
}
catch( Exception &error_ ) {
cout << "Caught exception: " << error_.what() << endl;
return 1;
}
return 0;
}
top.png: http://pic.ipicture.ru/uploads/090403/TN42cTRVy3.png
bottom.png, just transparent image 110px × 130px with blue border: http://pic.ipicture.ru/uploads/090403/WgaekwSWht.png
top-over-bottom.png, right version: http://pic.ipicture.ru/uploads/090403/oVY7gt7W93.png
top-over-bottom.png, not right version: http://pic.ipicture.ru/uploads/090403/4qTnz3iQOg.png
on my home pc i have right version. but on server i have image that is very similar to bottom.png.
but
Code: Select all
/usr/local/bin/composite -gravity center top.png bottom.png top-over-bottom.png
Info about server:
cat /etc/redhat-release
CentOS release 5.2 (Final)
gcc --version
gcc (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)
/usr/local/bin/Magick++-config --version
6.4.2 Q8
ImageMagick configure string
./configure --with-quantum-depth=8 --without-perl
uname -a
Linux xxxx.net 2.6.18-92.1.17.el5 #1 SMP Tue Nov 4 13:43:30 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
Looks like its bug.
Could anybody approve or/and fix, pls.
And if it will possible, post patch here.
Thanks.