Jan 05, 2009; 09:42
Shelane Enos
Invalid image filepath
I'm getting this error:
Error Message: Invalid image filepath.
Error Code: -9977
The path presented is /images/web/reg_btn_astroRA.gif
Which does exist on the server. When hit directly, the browser shows the
image. I'm trying to display it with this:
// Set the maximum size of the thumnail here.
var: 'maxwidth' = 195;
var: 'maxheight' = 33;
// Parse the path from the 'img' action parameter
var: 'path' = (action_param: 'img');
if: ($path == '');
fail: -1, 'No Image Specified';
/if;
// Set the content type based on the image name
if: ($path >> '.jpg');
content_type: 'image/jpeg';
else: ($path >> '.gif');
content_type: 'image/gif';
else: ($path >> '.png');
content_type: 'image/png';
else;
fail: -1, 'Unkown Image Type';
/if;
// Load the image
var: 'image' = (image: $path);
// Scale the image
if: ($image->width > $image->height) && ($image->width > $maxwidth);
$image->(scale: -width=$maxwidth, -thumbnail);
else: ($image->height > $maxheight);
$image->(scale: -height=$maxheight, -thumbnail);
/if;
// Serve the image
$__html_reply__ = $image->data;
abort;
This was on a recently migrated server. I checked file permissions and the
settings in lasso admin and see no off the top answers.
--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/
Jan 05, 2009; 14:02
Steve Piercy - Web Site Builder
Re: Invalid image filepath