...

View Full Version : ImageMagick trouble



mtd
07-12-2005, 04:01 PM
Hi. Just got ImageMagic all set up using the evolt PHP frontend (http://www.evolt.org/article/PHP_frontend_to_ImageMagick/17/55650/). Problem is, I keep getting the "ERROR: Image conversion failed." message resulting in the 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?

delinear
07-12-2005, 04:04 PM
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.

mtd
07-12-2005, 04:10 PM
Well, again I figured out the problem minutes after posting :rolleyes:

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

mtd
07-12-2005, 04:29 PM
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. :mad:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum