Returns -1
The script seems to return "-1" for both width and height... ami I missing something?
Posted by: Tom Tedeschi
Posted on: 08/25/2004 08:56 AM
|
return -1
You would get -1 if there is nothing to evaluate, i.e the image has not been uploaded or it was a zero byte file or you have specified an invalid path to the image.
Posted by: russ Michaels
Posted on: 08/25/2004 09:25 AM
|
Returns -1
If you replace #file.serverdirectory# with the full directory path, then the code works just fine!
Posted by: Paresh Dawda
Posted on: 09/20/2004 03:48 PM
|
I have tried with the full directory path, still it returns -1
Posted by: bigculkin
Posted on: 09/21/2004 02:11 AM
|
-1
Find:
objImage = imagetools.getImage("#file.serverdirectory##file.Serverfile#");
Replace with;
objImage = imagetools.getImage("#cffile.serverdirectory#\#cffile.Serverfile#");
It was returning -1 because the author forgot to add a backwards slash. And, file should be cffile.
Posted by: Matt
Posted on: 08/24/2005 01:57 PM
|