Imagemagick -composite not working in live server

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
meganathan
Posts: 10
Joined: 2014-09-13T00:32:18-07:00
Authentication code: 6789

Imagemagick -composite not working in live server

Post by meganathan »

Hi,

I used the below codes in my local server. Its working perfectly. But the same coding does not work

convert images/orig-hand-img2.png ( ./uploadedfiles/tool_final_images/site/individual-fingers/5413f41b9b916-finger-0.png -gravity center -geometry +140+157 -resize 60x100! ) -composite ( ./uploadedfiles/tool_final_images/site/individual-fingers/5413f41b9b916-finger-1.png -gravity center -geometry +48-96 -resize 47x100! ) -composite ( ./uploadedfiles/tool_final_images/site/individual-fingers/5413f41b9b916-finger-2.png -gravity center -geometry -11-117 -resize 46x100! ) -composite ( ./uploadedfiles/tool_final_images/site/individual-fingers/5413f41b9b916-finger-3.png -gravity center -geometry -70-97 -resize 47x100! ) -composite ( ./uploadedfiles/tool_final_images/site/individual-fingers/5413f41b9b916-finger-4.png -gravity center -geometry -125-3 -resize 47x100! ) -composite ./uploadedfiles/tool_final_images/site/individual-fingers/ouput-new-5413f41b9b916-finger-0.png

Thanks and Regards,
Meganathan P
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Imagemagick -composite not working in live server

Post by snibgo »

What does "not working" mean? What error message do you get?

What versions of IM are you using?

[Mod note: please don't multi-post. Other post deleted.]
snibgo's IM pages: im.snibgo.com
meganathan
Posts: 10
Joined: 2014-09-13T00:32:18-07:00
Authentication code: 6789

Re: Imagemagick -composite not working in live server

Post by meganathan »

I am getting nothing. I run this above code in php. The output image not return as well as i am not getting any error
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Imagemagick -composite not working in live server

Post by snibgo »

Does your PHP code check for errors and error messages?
snibgo's IM pages: im.snibgo.com
meganathan
Posts: 10
Joined: 2014-09-13T00:32:18-07:00
Authentication code: 6789

Re: Imagemagick -composite not working in live server

Post by meganathan »

I am not getting any error message even error reporting on.
But imagemagick work with some other features like cut single images into multiple images, apply watermark, remove the png image transparent unwanted spaces and etc.
meganathan
Posts: 10
Joined: 2014-09-13T00:32:18-07:00
Authentication code: 6789

Re: Imagemagick -composite not working in live server

Post by meganathan »

Hi,

This is my imagemagick version

ImageMagick 6.7.6-8 2012-05-02 Q16
meganathan
Posts: 10
Joined: 2014-09-13T00:32:18-07:00
Authentication code: 6789

Re: Imagemagick -composite not working in live server

Post by meganathan »

snibgo wrote:What does "not working" mean? What error message do you get?

What versions of IM are you using?

[Mod note: please don't multi-post. Other post deleted.]

----------------------------

This is my version: ImageMagick 6.7.6-8 2012-05-02 Q16
meganathan
Posts: 10
Joined: 2014-09-13T00:32:18-07:00
Authentication code: 6789

Re: Imagemagick -composite not working in live server

Post by meganathan »

Hi

Can you reply me on urgent basis?

Please.........
User avatar
glennrp
Posts: 1147
Joined: 2006-04-01T08:16:32-07:00
Location: Maryland 39.26.30N 76.16.01W

Re: Imagemagick -composite not working in live server

Post by glennrp »

If the server is running Linux and your local machine is Windows, you need to escape the parentheses on the server, that is,
change all "(" to "\(" and all ")" to "\)".
meganathan
Posts: 10
Joined: 2014-09-13T00:32:18-07:00
Authentication code: 6789

Re: Imagemagick -composite not working in live server

Post by meganathan »

Hi glennrp,

I really thanks to you. you are "genius". Brilliant guidance.

Really very very very very very.................... thank you.

Its working perfectly. Again thank you so much.

Thanks and Regards,
Meganathan P
Post Reply