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

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
krishan23
Posts: 4
Joined: 2012-06-20T19:32:24-07:00
Authentication code: 13

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

Post 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');
Last edited by krishan23 on 2012-06-20T19:38:49-07:00, edited 1 time in total.
krishan23
Posts: 4
Joined: 2012-06-20T19:32:24-07:00
Authentication code: 13

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

Post 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 :(((
krishan23
Posts: 4
Joined: 2012-06-20T19:32:24-07:00
Authentication code: 13

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

Post 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,.....
Post Reply