Forums
This topic is locked
smart image processor 2 php
Posted 11 Apr 2008 18:27:53
1
has voted
11 Apr 2008 18:27:53 Greta Garberini posted:
Hi,I keep getting the following errors in the file where SIPP2 is installed:
<b>Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'imageconvolution_replacement' was given in /daten/www/mypath/ScriptLibrary/lib/cImageEditor/cGD2ImageEditor.php on line 505</b>
My setting in the file is:
<b><?php require_once('../../ScriptLibrary/incPureUpload.php'); ?>
<?php require_once('../../ScriptLibrary/cGraphicMediator.php'); ?>
<?php
// Pure PHP Upload 2.1.3
if (isset($HTTP_GET_VARS['GP_upload'])) {
$ppu = new pureFileUpload();
$ppu->path = "../../dyn/komp";
$ppu->extensions = "";
$ppu->formName = "form1";
$ppu->storeType = "file";
$ppu->sizeLimit = "";
$ppu->nameConflict = "over";
$ppu->requireUpload = "false";
$ppu->minWidth = "";
$ppu->minHeight = "";
$ppu->maxWidth = "";
$ppu->maxHeight = "";
$ppu->saveWidth = "";
$ppu->saveHeight = "";
$ppu->timeout = "600";
$ppu->progressBar = "";
$ppu->progressWidth = "";
$ppu->progressHeight = "";
$ppu->checkVersion("2.1.3"
$ppu->doUpload();
//GP stuff
$GP_uploadAction = $HTTP_SERVER_VARS['PHP_SELF'];
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
if (!eregi("GP_upload=true", $HTTP_SERVER_VARS['QUERY_STRING'])) {
$GP_uploadAction .= "?".$HTTP_SERVER_VARS['QUERY_STRING']."&GP_upload=true";
} else {
$GP_uploadAction .= "?".$HTTP_SERVER_VARS['QUERY_STRING'];
}
} else {
$GP_uploadAction .= "?"."GP_upload=true";
}
}
//lots of other php stuff
?>
<?php
// Smart Image Processor PHP 2.0.2
if (isset($HTTP_GET_VARS['GP_upload'])) {
$klein = new cGraphicMediator("upload", $ppu, "Bild"
$klein->setComponent("Auto"
$klein->resize(100, 250, true);
$klein->sharpen();
$klein->overwrite = false;
$klein->setMask("##path##thmb/##name##.jpg"
$klein->saveJPEG(80);
$klein->process();
}
?></b>
And so the resize option does not work at all. I tried it on 2 different servers, but still it does not work.
I use a LAMP server with mysql5 / php5 and DWCS3
Please reply asap!
thanks