Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    mtd
    mtd is offline
    Regular Coder
    Join Date
    Jun 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ImageMagick trouble

    Hi. Just got ImageMagic all set up using the evolt PHP frontend (http://www.evolt.org/article/PHP_fro...ick/17/55650/). Problem is, I keep getting the "ERROR: Image conversion failed." message resulting in the code:

    PHP Code:
    // there should be a file named $cache now
    if (!file_exists($cache)) {
        die(
    'ERROR: Image conversion failed.');

    I assume this means $cache is not creating correctly, but I don't know what steps to take to fix it. Any help?

  • #2
    Regular Coder
    Join Date
    Feb 2005
    Location
    West Midlands, UK
    Posts
    623
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would guess it's some kind of permission problem. If you can locate what the cache file should be called and where it should be created then maybe you can create it manually and set the required permissions.

  • #3
    mtd
    mtd is offline
    Regular Coder
    Join Date
    Jun 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, again I figured out the problem minutes after posting

    Problem was, it was adding a _ before my image name, so magick.php/image1.gif became magick.php/_image1.gif in the $cache variable. Not sure why, but a str_replace on line 38 turned '/' into '_', so I just made it turn '/' into ''.

    That solved the problem, unless I just messed up some really important safety that will show up later down the line?

    PS thanks for the reply, delinear, didn't see your post when I was typing

  • #4
    mtd
    mtd is offline
    Regular Coder
    Join Date
    Jun 2003
    Posts
    107
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Okay, now it is concatenating the query string into the file name, replacing the ? with a %. It is supposed to read this and execute the commands from the query string (lines 26-40, 42-150), but instead it just turns the query commands into part of the filename, returning the same error that I started with.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •