Page 1 of 1

Image is always appearing in the upper left corner why??

Posted: 2012-06-20T19:34:57-07:00
by krishan23
In the Imagemagick I have a big problem. Whenever I apply composite for the images, the final image always appearing in the upper left corner. I have tried all the possibilities. Even I tried in the Imagemagick studio.. but same story... therefore I couldn't get the full image, top of the image is in out of the screen...

please look this image : http://s13.postimage.org/spdua2xtz/problem.jpg

I've tried +repage, -page and everything.. I don't know what's the problem... here is my code :

Code: Select all

// skew the image

exec('bash skew.sh -a 90 -m pixels -d r2t flate2.png skew_flate.png');

//3d rotate - pan

exec('bash rotate3D.sh 8,0,0 skew_flate.png s_r_img.png');

//3d rotate - roll

exec('bash rotate3D.sh 0,0,-10 s_r_img.png s_r_rr_img.png');

//composite the image

exec('composite -gravity center -geometry -25+5 -compose SrcOver book_trans.png s_r_rr_img.png  final_img_ffff.png');

Re: Imagemagick-Image is always appearing in the upper left

Posted: 2012-06-20T19:36:00-07:00
by krishan23
I tried this one... exec('convert s_r_rr_img.png book_trans.png \ -gravity center -geometry -30-20 -compose SrcOver -composite +repage +repage finalIMGFINAL.png ') Still no use... WTH :(((

Re: Imagemagick-Image is always appearing in the upper left

Posted: 2012-06-20T19:36:18-07:00
by krishan23
Tried this : exec('convert -page 600x600+200+200 finalIMGFINAL.png -flatten flatten_image.png'). Image showed in middle but top and left parts are missing... becaz final image was in upper left corner... WTH WTH... I don't know what to do,.....