ImageMagick - Show me how to call convert?

Discussion in 'PHP' started by Forest_Parks, Jun 10, 2008.

  1. #1
    Hi,

    I have a Godaddy linux account which apparently has ImageMagick 6 installed here: /usr/local/bin/

    And I found some example PHP scripts to use (many different ones).

    I am trying to understand how I would actually get my example script to find the convert command from imagemagick.

    I tried replacing:
    "convert" with "/usr/local/bin/convert" in the scripts but this did not work.

    Could anyone pass me over some php script that i could upload to my server and then run it.

    I could then look over the script and hopefully start to understand what is going on.

    Sorry if I seem so dumb right now? I understand the concept, just not how to execute it right now!!
     
    Forest_Parks, Jun 10, 2008 IP
  2. Lordo

    Lordo Well-Known Member

    Messages:
    2,082
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    190
    #2
    I don't use imagemagick but I remember I came by a couple of handlers of which you should use one to call the function. Let me google that for you. I think it was in sitepoint articles.

    Yes here it is:
    from http://www.sitepoint.com/article/dynamic-images-imagemagick
     
    Lordo, Jun 10, 2008 IP
  3. joffer

    joffer Peon

    Messages:
    85
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Maybe you forgot to chmod the directories u want to use convert on ?
     
    joffer, Jun 11, 2008 IP
  4. Forest_Parks

    Forest_Parks Peon

    Messages:
    106
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    oh!!! Good points.

    Thaks very much, I am attempting to try this now.
     
    Forest_Parks, Jun 13, 2008 IP